News for hackers. Stuff that matters.
Re:The software development final exam: Computer Architectur... by andyjohnson0 on Tuesday October 09, 2012 @09:32AM (#4631380)
I'm not doubting what you say, but could you elaborate on why Fortran is different?

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?

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.