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. No, the array dimension cannot be a variable.

Computer Science & Information Technology

You might also like to view...

What is the most likely problem if the Windows Firewall is turned off (disabled) every time the computer restarts?

A) There is a virus. B) Another firewall is installed. C) The firewall has received an update that has not been installed. D) The firewall application needs to be updated.

Computer Science & Information Technology

Which of the following protocols uses port 443?

A. SSH B. SFTP C. HTTPS D. SHTTP

Computer Science & Information Technology