memory_access.c
350 Bytes
#include <stdlib.h>
#include <stdio.h>
#define DIM 100
int main(int argc, char *argv[])
{
//float *a;
int i;
float a[DIM];
// a = (float *) malloc( sizeof(float) * DIM );
for( i = 0; i < DIM; ++i) a[i] = 0.0;
// sup = k;
// k = a[i];
a[200] = 99.0;
printf("GOOD END \n");
// free(a);
return(EXIT_SUCCESS);
}