Computer Applications
Total number of elements in array C[5][3][2] are …………… .
- 10
- 20
- 30
- 50
Java Arrays
8 Likes
Answer
30
Reason — The total number of elements in array C will be 5 x 3 x 2 = 30.
Answered By
6 Likes
Related Questions
Total size of array A having 25 elements of char type is …………… .
- 25 bytes
- 50 bytes
- 100 bytes
- None of these
Total size of array B[10][5] of int type is …………… .
- 50 bytes
- 15 bytes
- 100 bytes
- 200 bytes
Which of the following statements are valid array declaration ?
- int number( );
- float average[ ];
- double[ ] marks;
- counter int[ ];
Consider the following code
int number[ ] = new int[5];After execution of this statement, which of the following are True ?
- number[0] is undefined
- number[5] is undefined
- number[2] is 0
- number.length is 5