Advertisement
Guest User

Untitled

a guest
May 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. int x=2;
  2.  
  3. void f2()
  4.  
  5. {
  6.  
  7. extern int x;
  8.  
  9. printf("In f2 x:%dn",x);
  10.  
  11. }
  12.  
  13. void f3()
  14.  
  15. {
  16.  
  17. extern int x;
  18.  
  19. printf("In f3 x:%dn",x);
  20.  
  21. }
  22.  
  23. #include"stdio.h"
  24. #include"conio.h"
  25. #include"C:TCBINdemo_f1.C"
  26. #include"C:TCBINdemo_f2.C"
  27. #include"C:TCBINdemo_f3.C"
  28. void main()
  29.  
  30. {
  31.  
  32. clrscr();
  33.  
  34. printf("In main program,x:%dn",x);
  35.  
  36. f2();
  37.  
  38. f3();
  39.  
  40. getch();
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement