Skip to content

Instantly share code, notes, and snippets.

@madbence
Created May 1, 2013 21:05
Show Gist options
  • Save madbence/5498362 to your computer and use it in GitHub Desktop.
Save madbence/5498362 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int arr[4][4];
for(int i=0;i<4;i++) for(int j=0;j<4;j++) arr[i][j]=i*4+j;
for(int i=0;i<16;i++) {
cout<<((int*)arr)[i]<<", ";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment