char **p; p = new char*[50]; // p = new *char[50]; will give you a syntax error *p = new char[50]; p[0][0] = 'a'; p[0][1] = 'b'; p[0][2] = 'b';
delete [] *p; delete [] p;
Leave a comment: