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:

REAL MYARRAY(0:99)

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

Steve

Steve - Intel Developer Support

Leave a Comment

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