hi all
I am using the following code, which is printing a value of 0.0 instead of 212.0. What am I doing wrong?
Code:
double **u;
int N = 52;
int i;
u = malloc (N * sizeof(double *));;
for (i = 0; i < N; i++)
u[i] = malloc(N * sizeof(double));
u[10][10] = 212.0;
printf("U[10][10] = %4.3f", u[10][10]);