/* filename: file1.c */
#include<stdio.h>
int sum=1;
extern f3(), f4();
main(){
extern char ch;
printf("%c\n",ch);
f1();
f2();
f3();
f4();
return 0;
}
char ch='A';
f1(){
printf("Function f1()\n");
printf("%c\n",ch);
}
f2(){
printf("Function f2()\n");
printf("%c\n",ch);
}
/* filename: file2.c */
f3(){
extern int sum;
extern float cost;
extern char ch;
printf("Function f3()\n");
printf("Sum = %d\n", sum);
printf("cost = %f\n",cost);
printf("ch = %c\n",ch);
}
float cost;
extern f2();
f4(){
cost=5;
printf("Function f4()\n");
printf("cost = %f\n",cost);
f2();
}
This page created with Netscape Navigator Gold (17/9/1999)