Say we have this:
int array[2]={1,2};
int *ptr = array;
cout<<ptr[1];
Now if we have this
int array[2][2];
//pretend it contains values, save me writing code:0
how do i assign a pointer to this multi dimensional array?
Thanks
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 12 of 12
Thread: multi dimensional arrayThreaded View
|
Click Here to Expand Forum to Full Width |