Ask Question
21 November, 20:30

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.

+5
Answers (1)
  1. 21 November, 21:22
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers