12. Define and create an array of 10 integers. The array elements should be init
ID: 3586070 • Letter: 1
Question
12. Define and create an array of 10 integers. The array elements should be initialized to zero. (1 point) 13. Define and create an array with these values using an initializer list: 9, 18, 3,0, 12 (1 point) 14. Using the array created in 13, replace the second element with the value 99. (1 point) 15. Print the elements of the array created in 13 from the last element to the first (1.5 point) 16. Define and create a 2 dimensional array of integers with 4 rows and 8 columns (1.5 point) 17. Print the elements of the array created in 16 in table format (rows and columns) (1.5 point)Explanation / Answer
12.) int a[10] = {0,0,0,0,0,0,0,0,0,0};
13.) int b[5] = {9,18,3,0,12};
14.) b[1] = 99;
15.) for(int i=4;i>=0;i--){
cout << b[i] << " ";
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.