Sun Studio 12: Fortran Programming Guide

11.1.7.1 Array Indexing

C arrays always start at zero, but by default Fortran arrays start at 1. There are two usual ways of approaching indexing.


      INTEGER B(0:2)

This way, the Fortran element B(1) is equivalent to the C element b[1].