Re: Static data?
Re: Static data?
- Subject: Re: Static data?
- From: Creed Erickson <email@hidden>
- Date: Tue, 6 Jul 2004 21:58:03 -0700
On Tuesday, July 6, 2004, at 03:26 PM, Markian Hlynka wrote:
So, now, the previous post confused me. What is the _correct way of
doing this:
int foo[1024][1024][1024];
dynamically?
int *foo = (int *)calloc((1024*1024*1024),sizeof(int));
Array indexing is just pointer math, i.e., the pointer resulting from
the above can be offset with indices such as foo[x][y][z].
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.