what does a[ ][10] suggest to us. does it mean rows can be of any number or what
A small doubt about array
Hey Satvik, While assigning values to a 2D array at the time of declaration, we need to give at least the second dimension. So it means that no. of rows can be variable but you must specify the no. of columns.
1 Like
clarify please the question
Hey, can you please elaborate what are you trying to say.
1 Like
i was saying that once prateek bhaiya made a function ex. void maxsum(int a[ ][10], int delim)
so i am asking why he did this
{a[] [10] not a[10][10]} and he also said that rows are variable but in that topic there was no such thing
Hey, when you are declaring a 2D array its your wish if you want to mention the no. of rows or not, its just that it is mendatory to mention the no. of columns.