//学习使用external的用法
#include <stdio.h>
#include <stdio.h>
int a,b,c;
void add()
{
int a;
a=3;//局部变量a在函数中起着作用
c=a+b;
}
main()
{a=b=4;
add();printf("The value of c is equal to %d\n",c);
return 0;
}
void add()
{
int a;
a=3;//局部变量a在函数中起着作用
c=a+b;
}
main()
{a=b=4;
add();printf("The value of c is equal to %d\n",c);
return 0;
}