Why we keep that row no equal to zero? What does that mean? We are specifying columns as 10, then why not rows? (in keyboard [ ] [ 10 ] )
Doubt in 2D array
Hello @gambhirrahul0 This is because when we make 2d array then it is stores as the linear array instead of its 2d format .
so if we divide the total elements in the array by the number of columns then we can get the whole dimension with the help of the that,but the same will not be true if we pass only the rows.
that is the reason.
becuase by the number of rows we cannot find the dimension this is the reason.
if you have any doubt you can ask here:
Happy Learning!!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.