I have the following source:
#include
using namespace std;
void main(int j)
{
char arr[10][10];
char** ptr;
ptr = arr;
}
Arrays are NOT just pointers -- arrays are arrays. Arrays are not first-class types, however, so you can't use them in many places. The thing that causes your confusion is that array names CAN be implicitly converted into pointers to the array's first element, which means that you can use an array in many places where you need a pointer and it 'just works'. This, however, is not one of those places.