To declare a pointer called ptr2 that will point to a dynamic 2-dimensional array of integers, we should use the code:
A. int ptr2[10];
B. int ( int ptr2 );
C. int ptr2;
D. int [ int ptr2 ];
D
Computer Science & Information Technology
You might also like to view...
Antivirus software can detect all viruses
Indicate whether the statement is true or false.
Computer Science & Information Technology
What will be displayed after the following statements execute?
``` int funny = 7, serious = 15; funny = serious % 2; if (funny != 1) { funny = 0; serious = 0; } else if (funny == 2) { funny = 10; serious = 10; } else { funny = 1; serious = 1; } cout << funny << " " << serious << endl; ``` a. 7 15 b. 0 0 c. 10 10 d. 1 1 e. None of these
Computer Science & Information Technology