26.5k views
5 votes
Which of the following statementsdeclares alpha to be an array of 25components of the type int?

a.

int alpha[25];

c.

int alpha[2][5];

b.

int array alpha[25];

d.

int array alpha[25][25];

User Salma
by
8.5k points

1 Answer

7 votes

Answer:

The statement in the option (a) declares alpha array of 25 elements of type int.

and the statement is int alpha[25];

Step-by-step explanation:

The syntax for declaring an array is as following:-

data type array_name[size];

Option (a) correctly matches the syntax written above.So we can conclude that option (a) is the answer i.e data type = int , array name=alpha and size=25.

User Xiak
by
8.8k points