Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char* argv[]) {
- int x = 0;
- int foo(int n) {
- x += n;
- int bar(const char param[]) {
- printf("woof! %s\n", param);
- }
- bar("where's your god now?");
- }
- foo(3);
- printf("%d\n", x);
- {
- int x = 0;
- foo(3);
- printf("%d\n", x);
- }
- printf("%d\n", x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement