+ 1
What is the size of array
int arr[4][7]
4 Answers
+ 2
4*7 = 28. This array can store 28 integers.
+ 2
Every integer variable has 2 bytes.
This arr is a multidimensional array which can contain 28 integer elements therefore the size of array is 28*2 i.e 56 bytes. You can find the size of the array by writing this statement cout<<sizeof(arr); .
0
Array starts with 0 and ends with n-1
0
Array starts with 0 and ends with n-1