Advertisement
GlasLarson

test

Feb 8th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int g_nX; // global variable
  2.  
  3.  
  4. void Main()
  5. {
  6. int nY; // local variable nY
  7.  
  8. // global vars can be seen everywhere in program
  9. // so we can changes the new values here
  10. g_nX = 5;
  11. } // nY is destroyed here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement