给出下面程序的运行结果(4分)
#include <stdio.h>
struct s
{ int n;
int *m;
}*p;
int f[5] = { 100, 200, 300, 400, 500 };
struct s arr[5] = {10, &f[0], 20, &f[1], 30, &f[2], 40, &f[3], 50, &f[4]};
void main()
{
p = arr;
printf(“%d ”,+p->n) ;
printf(“%d”, (++p) ->n) ;
printf(“%d\n”,++(*p->m) ) ;
}
查看答案和解析【26考研辅导课程推荐】:26考研集训课程,VIP领学计划,26考研VIP全科定制套餐(公共课VIP+专业课1对1) , 这些课程中都会配有内部讲义以及辅导书和资料,同时会有教研教辅双师模式对大家进行教学以及督学,并配有24小时答疑和模拟测试等,可直接咨询在线客服老师领取大额优惠券。
启航教育热门私房课
MORE