In this video Prateek Bhaiaya inititalised
the array as arr[ ][10] = { " ", " ", “ABC”…} and so on. My doubt is if 2 D array[ ][ ] means array[row][column] then shouldn’t it be defined as arr[10][ ] = {values} ?
Doubt in array inititalisation
It is the syntax how a 2D array is declared in C++. The size of columns is always defined, like while passing in functions as a parameter.
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.