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...

How can you force a paragraph to start at the top of the next column?

What will be an ideal response?

Computer Science & Information Technology

A JAD session involves:

A) casual planning, since the interaction between users is when the activity occurs in a creative fashion. B) using a session leader that has excellent communication skills. C) having a systems analyst as a session leader. D) note-taking by all the individuals within the session.

Computer Science & Information Technology