Which of the following array declarations are legal?

a. int array[10];
b. int size;
cin >> size;
int array[size];
c. int array[]={0,0,0};
d. const int size=9;
int array[size];
e. All of the above
f. All but C
a. int array[10];
b. int size;
cin >> size;
int array[size];
c. int array[]={0,0,0};
d. const int size=9;
int array[size];
e. All of the above
f. All but C
g. All but B


g. All but B

Computer Science & Information Technology

You might also like to view...

Video cards are designed with their own RAM storage

Indicate whether the statement is true or false

Computer Science & Information Technology

A binary code that uses 8 switches has ________ different possible combinations

A) 64 B) 512 C) 1024 D) 256

Computer Science & Information Technology

The test argument in an IF statement must evaluate to either ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can add new rows and columns to a data table by dragging the sizing handle in the table's lower-right corner.

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

Computer Science & Information Technology