I was wondering if the following code will work...

const int n;

int 2darray[n][n]={25, 50, 75,

Can I use the code above to read the elements into an open file?

I would use the following for loops to read the array into a file.

for (i=0; i<=n; i++) // used to read the columns

for (j=0; j<=n; j++) // used to read the rows