学习使用external的用法

//学习使用external的用法
#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;
}

猜你喜欢

转载自blog.csdn.net/singularityfisher/article/details/80488318