Query on 2D array

while declaring a 2D array we can do,

  1. a[5][]
    OR
  2. a[][5]

Please explain reason behind your choice

hello @prerak_semwal

while declaring 2d array both the arguments are necessary.

but if u are declaring it in function argument then mentioning column size is mandatory and row is optional

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.