Ask Question
14 June, 06:10

Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20, ..., 100, respectively.

+1
Answers (1)
  1. 14 June, 07:09
    0
    int a[10] = {10,20,30,40,50,60,70,80,90,100};

    Explanation:

    In the above statement, we declare the integer data type array variable that is 'a' then, pass its index value that is 10 which means it contains only 10 values and initialize the components of the array variable that is starting with 10 and end at 100 in the difference of 10. So, the following declaration is correct according to the statement.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20, ..., 100, ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers