
November 28th, 2004, 03:38 AM
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 11
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
pointer to a multidimensional array
Hi,
How can I declare a pointer to a multi-dimensional array without losing the benefits granted from using a multi-dimensional array?
EG.
Code:
const char c_cMap[4][4] = {
{1, 0, 1, 0},
{1, 0, 1, 0},
{1, 0, 1, 0},
{1, 0, 1, 0},
};
//char* pcPointerToMap[4][4]...?
// I want to use the pointer to access the array in the same way as I could the constant.
|