+ 2
arr[]={{6,7},{5,9},{8,2}} is this declaration valid, if yess than how? In C++.
6 Respostas
+ 13
it is a 2d array, probably you need to write arr[][] and as ~ swim ~ said please mention the language for more clear answer
+ 12
Piyush Srivastava if its a 2d array, then here is how you will write it in in C++ :
int arr[3][2]={{6,7},{5,9},{8,2}};
~ swim ~ I need to learn it, not knowing much about it now, sounds interesting.
+ 4
Got it swim thanks.