I'm declaring a global variable in my program:
double mat[3200][3200];
when passing this array to fwrite() by using the variable's name as argument, I get stack overflow thrown at runtime.
fwrite(mat, sizeof(double), 3200*3200, fid);
Why is that? Shouldn't the compiler replace the variable mat with a pointer to its first element?