Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

n00b question

Name: n00b 2009-01-26 23:37

Is there a way to declare an array in C so the indexing starts at something besides zero?  Like if I wanted the array to be a[-10] to a[10] instead of a[0] to a[20]?

Name: Anonymous 2009-01-27 1:57

>>8-9
Valid but a hash map is slower and takes a good deal more memory than a true array.

#define for negative indexed array
Go back to www.dailywtf.com, please.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List