I am creating 1d arrays B and T of n size and a 2D array A of nxn size,where n has been computed earlier. But the program crashes after Pause, what am i possibly doing wrong??
float *B = malloc(sizeof(int) * (n));
float *T = malloc(sizeof(int) * (n));
system("PAUSE");
float **A;
A = malloc(sizeof(int) * (n));
for(j = 0; j < n; j++)
{
A[j] = malloc(sizeof(int) * (j));
}
i, j and n are integers.