Advertisement
wandrake

Untitled

Mar 8th, 2013
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[]) {
  4.     int x = 0;
  5.  
  6.     int foo(int n) {
  7.         x += n;
  8.         int bar(const char param[]) {
  9.             printf("woof! %s\n", param);
  10.         }
  11.         bar("where's your god now?");
  12.     }
  13.    
  14.     foo(3);
  15.     printf("%d\n", x);
  16.  
  17.     {
  18.         int x = 0;
  19.         foo(3);
  20.         printf("%d\n", x);
  21.     }
  22.  
  23.     printf("%d\n", x);
  24.      
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement