Guest User

Untitled

a guest
Oct 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int _tmain(int argc, _TCHAR* argv[])
  8. {
  9. int x = 0;
  10. /*create an array */
  11. int gArray[10][10];
  12. /*fill the array*/
  13. for(int row = 0; row < 10; row++)
  14. {
  15. for (int col = 0; col < 10; col++)
  16. {
  17. gArray[row][col] = x++;
  18. cout << gArray[row][col];
  19. cout << &gArray[row][col] << endl;
  20. }//end col loop
  21. }//end row loop
  22. return 0;
  23. };//end main method
Add Comment
Please, Sign In to add comment