+ 1
Why does this not print 1-10? Is it printing the addresses? So confused please help!
Using range-based for to print 2D array. https://code.sololearn.com/cxj48PbVt7qA/?ref=app
3 Respostas
+ 2
You created an array called a that is 5x5.
Thats 5 colums and 5 rows but you only specified 2 sets of 5.
I would recommed using two for loops to test instead of the auto loop.
+ 1
Oh wow, now i feel stupid. Thanks @Joseph
+ 1
updated