Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. int i;
  2. static int j;
  3. int main ()
  4. {
  5. for ( int k = 0; k < 10; k++ )
  6. {
  7. int foo = k;
  8. }
  9. }
  10.  
  11. {
  12. // the following statements are before main.
  13. extern int i; // this is acceptable, I know since i acts as a global variable in the other file
  14. extern int j; // Will this be valid?
  15. extern int foo; // Will this be valid as well?
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement