1.

Which among the following is correct syntax to declare a 2D array using new operator?

A. char (*pchar)[10] = new char[][10];
B. char (pchar) = new char[][10];
C. char (*char) = new char[10][];
D. char (*char)[][10]= new char;
Answer» B. char (pchar) = new char[][10];


Discussion

No Comment Found