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

```#define size 20
int main()
{
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. Yes, you could write it this way, but you would be wrong.


A

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. You must create an object of class JOptionPane to use its static method showMessageDialog. b. JOptionPane method showInputDialog displays an input dialog containing a prompt and a field (known as a text field) in which a user can enter text. c. String method format works like method System.out.printf, except that format returns the formatted String rather than displaying it in a command window. d. An input dialog allows the user to enter data into a program.

Computer Science & Information Technology

Describe three ways to

a. Change the size of a window. b. Delete a window.

Computer Science & Information Technology

The ________ list contains links to the most commonly used folders for the current user

Fill in the blank(s) with correct word

Computer Science & Information Technology

The C language, which is C++’s predecessor, is a(n) ____ language.

a. hybrid b. procedural c. object-oriented d. relational

Computer Science & Information Technology