Array Index

Array Index

I'm trying to compile an old code. I need array indexes to start at zero. How do I accomplish this?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Um, if the old code is Fortran, array indexes start by default at 1 - always have. You can specify a zero origin when you declare the array, for example:


There is no "switch" to magically change the origin to zero.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today