why do we pass 2d array like board[ ][10]
why do we leave the first bracket
Pass 2d array in funct
hello @singhsimran567 when we pass the array in the function then it is paases as the linear array so thats why we can make this convert into 2dc array by passing the number of columns.
suppose if you make the array of size 11*10 then by dividing the number of rows we wouldnt be able to conver it back into the 2d array but if we divide it by number of columns then we can no after 10 elements the 11 th element will come in the next line.
i hope i have cleared your doubt.
if you still have any doubt you can ask here.
Happy Learning!!