Array parameter in function

Is there any specific reason why the function parameters for rotate have the array as a[][1000] ? I am referring the the 1000 value in columns…

hello @diganta_7777 just confirming you want to know the reason why passing a single parameter for columns in the array works ?
right ?

Yes and also is there any specific reason to select column…Could I do it with the rows as a[1000][]? Would it make any diiference?

hey @diganta_7777 no you cannot do the same with the rows because there is reason for this.
the reason is if you divide the total size of the array by number of columns then you can arrange the matrix in 2d form .
but you cant do the same with the help of the total rows .
this is the reason .
like if you declare the array of size 10x20 then if you pass only the number of columns then you can know that after what element your array is converted into 2 dimensional .
because when the array is passes it is passes as single arrat in which all the elements are arranged in single row only .
if you still have doubt you can ask here .
Happy Learning !!

Thank You ! .