Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x=2;
- void f2()
- {
- extern int x;
- printf("In f2 x:%dn",x);
- }
- void f3()
- {
- extern int x;
- printf("In f3 x:%dn",x);
- }
- #include"stdio.h"
- #include"conio.h"
- #include"C:TCBINdemo_f1.C"
- #include"C:TCBINdemo_f2.C"
- #include"C:TCBINdemo_f3.C"
- void main()
- {
- clrscr();
- printf("In main program,x:%dn",x);
- f2();
- f3();
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement