Array of pointers in objective-c
- by Justin
I'm getting confused by pointers in objective-c.
Basically I have a bunch of static data in my code.
static int dataSet0[2][2] = {{0, 1}, {2, 3}};
static int dataSet1[2][2] = {{4, 5}, {6, 7}};
And I want to have an array to index it all.
dataSets[0]; //Would give me dataSet0...
What should the type of dataSets be, and how would I initialize it?