From this given array:
int arr[][3] = {{1,2},{3,4,5},{5}}
I have few questions:
1) From looking at the definations and way of declaration of jagged and Multidimensional array, I think this one is the Multidimensional array, am I right?
2) How to find the: sizeof(arr), arr[0][2] & arr [1][2] These are the options:
a) 6 0 4 b) 6 1 5 c)18 0 5 d)18 1 5
I know we find the size of array by multiplying the size of datatype (Int is 4 bytes) with the total elements so here it will be 9 (because of Multidimensional array) * 4 = 36 (got the hint from https://stackoverflow.com/a/51479846/5698871) , But there is no 36 in available options , for remaining two values arr[0][2] & arr [1][2] , it will be I think 0 5, But how come 18 is the size here?
Please any explanation will be really helpful. Thanks.