Re:The software development final exam: Computer Architectur...
by dagw on Tuesday October 09, 2012 @10:07AM
(#4631534)
Sorry, I screwed up. I skimmed the question and mis-remebered it when making my post. I thought the question looked like:
for(i=0...
for(j=0...
A[i][j]=0;
vs for(i=0...
for(j=0...
A[j][i]=0;
In which case C vs Fortran makes a difference to the way multidimensional arrays are stored in memory.
I could understand a difference for two-dimensional (or more) arrays, where different languages lay-out the array contents in memory differently. Does Fortran lay-out the contents of one dimensional arrays in an unusual way?