Ask Question

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];

+1
Answers (1)
  1. 6 January, 02:57
    0
    The statement in the option (a) declares alpha array of 25 elements of type int.

    and the statement is int alpha[25];

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers