程序运行后的输出结果是
#include<stdio.h>
int f(int a)
{
int b = 0;
static int c = 3;
b = b+1;
c = c+1;
return(a+b+c) ;
}
main()
{
int a = 2, i;
for(i = 0; i<3; i++)
printf( ”%2d“, f( a) ) ;
}
查看答案和解析【26考研辅导课程推荐】:26考研集训课程,VIP领学计划,26考研VIP全科定制套餐(公共课VIP+专业课1对1) , 这些课程中都会配有内部讲义以及辅导书和资料,同时会有教研教辅双师模式对大家进行教学以及督学,并配有24小时答疑和模拟测试等,可直接咨询在线客服老师领取大额优惠券。
启航教育热门私房课
MORE