Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Last active September 20, 2020 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/c625e60081c490a3d2ba3586f9f5e0ee to your computer and use it in GitHub Desktop.
Save ehzawad/c625e60081c490a3d2ba3586f9f5e0ee to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int ia [3][4] = {{0,1,2,3},{4,5,6,7},
{8,9,10,11}};
for ( auto p = begin(ia) ; p != end(ia) ; ++p )
{
for (auto q = *p ; q != end(*p) ; ++q)
{
std::cout << *q << std::endl;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment