Answers for "how to print elements of an 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

Code answers related to "how to print elements of an 2d array in cpp"

Browse Popular Code Answers by Language