Page 1 of 1

In c++ 2) Assume we want to add all of the numbers in a 3-dimensional array of integers declared as int arr[3][2][3] = /

Posted: Tue Jul 12, 2022 8:15 am
by answerhappygod
In c++
2) Assume we want to add all of the numbers in a3-dimensional array of integers declared as int arr[3][2][3] = /*initialization values here */;
a) How many loops would be needed to use this?
b) Which would be better to use--for loops or whileloops--and why?
c) How many integer elements in the array?