can we write this
int [] []arr =new int [3][100] ;
how an array of size 3 store 100 arrays ???
Doubt in 2d array
@harsh.hj hey buddy its not array of size 3, basically 2d array is an array of array, you can think that there are 3 placeholders and each placeholder contains an array of size 100 or 3 references each referring to array of size 100. That’s the logic.
If you have seen the video carefully you can see the memory diagram, make those concepts strong bro.
If ya query is clear, mark the doubt resolved and rate full!