Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- int x = 0;
- /*create an array */
- int gArray[10][10];
- /*fill the array*/
- for(int row = 0; row < 10; row++)
- {
- for (int col = 0; col < 10; col++)
- {
- gArray[row][col] = x++;
- cout << gArray[row][col];
- cout << &gArray[row][col] << endl;
- }//end col loop
- }//end row loop
- return 0;
- };//end main method
Add Comment
Please, Sign In to add comment