现在的位置: 首页 > 综合 > 正文

【程序44】学习使用external的用法

2013年10月31日 ⁄ 综合 ⁄ 共 139字 ⁄ 字号 评论关闭

题目:学习使用external的用法

 

#include <stdio.h>
int a,b,c;
void add() 
{ 
	int a;   
	a=3;   
	c=a+b;   
}   
int main()   
{ 
	a=b=4;   
	add();   
	printf("The value of c is equal to %d\n",c);   
    return 0;
} 

抱歉!评论已关闭.