Question stucked

closed account (zTUSz8AR)
Hi everyone I am stuck in this question can anyone help me solve it and how it is done?

Determine whether the following array declarations are valid. If a declaration is valid, determine the size of the array.

A) int list[ ] = {18, 13, 14, 16};

B) int x [10] = {1, 7, 5, 3, 2, 8};

C) double y[4] = {2.0, 5.0, 8.0, 11.0, 14.0};

D) double lengths[ ] = {8.2, 3.9, 6.4, 5.7, 7.3};

E) int list [7] = {12, 13, 14, 16, , 8};

F) string names[8] = {"John", "Lisa", "Chris", "katie"};

Take a look at this link:

http://www.cplusplus.com/doc/tutorial/arrays/

It should give you an idea.
Topic archived. No new replies allowed.