Answers for "how to print 2d array in cpp"

C++
0

print 2d array c++

for( auto &row : arr) {
    for(auto col : row)
         cout << col << " ";
	cout<<endl; 
}
Posted by: Guest on April-04-2021

Browse Popular Code Answers by Language