Are the following array initializations correct? If not, why not?
a)```
int x[4] = {8, 7, 6, 5, 4};
```
b)```
int x[] = {8, 7, 6, 5, 4};
```
c)```
int x[4] = {8, 7, 6};
```
d)```
const int SIZE =4;
int x[SIZE];
```
e)```
const int SIZE =4;
int x[SIZE-4];
```
b) c) and d) are correct.
Computer Science & Information Technology
You might also like to view...
When a document is protected, most of the buttons on the Home tab are:
A) hidden. B) dimmed. C) active. D) optional.
Computer Science & Information Technology
If multiple mathematical operands are included in a function or formula, Excel processes the calculations based on the ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
Why should employee paychecks be drawn against a special checking account?
What will be an ideal response?
Computer Science & Information Technology
All hidden layers are discarded when a file is flattened.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology