Advertisement
cr1901

Scope Test

Mar 31st, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int i = 0;
  6.     printf("%d\n", i); /* 0 */
  7.     {
  8.         int i = 1;
  9.         printf("%d\n", i); /* 1 */
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement