Is it possible to write code in this manner for a C++ program?

```int size;
cout << “Enter the size of the array.”.;
cin >> size;
int numbers[size];```
A. Yes, this is perfectly acceptable C++ code.
B. No, the array dimension cannot be a variable.
C. The compiler would report that there is an illegal use of a keyword.
D. Both A and C are correct.


B

Computer Science & Information Technology

You might also like to view...

All possible operations for Alice objects are predefined as methods for programmer use.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Most utilities are treated as __________ routines that are stored on disk and loaded into memory only when necessary.

a. disk resident b. temporary c. transient d. service

Computer Science & Information Technology

Document ____ are the details about a file.

A. properties B. facts C. themes D. keywords

Computer Science & Information Technology

Queries can use ________ functions to calculate sum, average, minimum or maximum for a group of records

Fill in the blank(s) with correct word

Computer Science & Information Technology