Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int im_outside = 42;
- void afunction()
- {
- printf("Here is an outside variable as seen from a function %i\n", im_outside);
- return;
- }
- int main (int argc, const char * argv[])
- {
- printf("Here is a variable I can see: %i\n", im_outside);
- afunction();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement