Talk:Sorting algorithms/Shell sort: Difference between revisions

no edit summary
(Fortran question)
 
No edit summary
Line 2:
DO i = increment+1, SIZE(a)
means? Could that be translated into C-style code? --[[User:Mwn3d|Mwn3d]] 08:34, 20 May 2008 (MDT)
 
Try
for (i=increment; i<=(Number of elements in array)-1; i++)
Note by default fortran arrays are 1 based while C arrays are 0 based
Anonymous user