216k views
5 votes
You use a ____ following the closing brace of an array initialization list.

a.
,

b.
.

c.
:

d.
;

1 Answer

4 votes

Answer:

a.

,

Step-by-step explanation:

The array is used to store the multiple data with same data type.

Syntax for initialization of array:

type name[] = {data_1, data_2, data_3,....};

the comma ',' is used to separate the data with other data.

for example:

int array[] = {1,2,3,4,5};

we cannot used dot '.', colon ':' and semicolon ';' as separator.

User Tortal
by
5.5k points