Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2.  
  3. int im_outside = 42;
  4.  
  5. void afunction()
  6. {
  7.     printf("Here is an outside variable as seen from a function %i\n", im_outside);
  8.     return;
  9. }
  10.  
  11. int main (int argc, const char * argv[])
  12. {
  13.     printf("Here is a variable I can see: %i\n", im_outside);
  14.     afunction();
  15.     return 0;
  16. }