If a program requires a dynamically allocate two-dimensional array, you would allocate the memory by using
a. p1 = new int*[numRows];
for(int i=0; i < numRows; i++)
p1[i] = new int[numColumns];
b. p1 = new int*[numRows][numColumns];
c. p1 = new[numRows][numColumns]int;
d. none of the above
a. p1 = new int*[numRows];
for(int i=0; i < numRows; i++)
p1[i] = new int[numColumns];
Computer Science & Information Technology
You might also like to view...
A(n) ________ control is a control that contains descriptive information, typically a field name
A) label B) bound C) unbound D) calculated
Computer Science & Information Technology
What are the two types of networking devices defined by power over Ethernet? (Select all that apply.)
A) Powered sinking equipment B) Powered end users C) Powered sourcing equipment D) Powered device
Computer Science & Information Technology