cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Two-dimensional array C++
Two-dimensional array C++
Apr 28, 2015 at 3:14pm UTC
Audy45
(4)
Hello i need help in answer ,, what is output?
#include <iostream>
using namespace std;
void main()
{
int a[3][3]={{1,2},{3,4},{5,7}}
for(int i=2;i>=0;i++)
for(int k=2;k>0;k--)
cout<<a[i][k]
}
what is output?
Apr 28, 2015 at 3:17pm UTC
firedraco
(6243)
Try stepping through the code yourself using a pencil/paper. Either that or you can use a debugger and see what it does yourself.
Topic archived. No new replies allowed.