当前位置:
找题吧
>
计算机等级
二级C语言程序设计
[单选题]
有以下程序
#include <stdio.h>
typedef struct { int b, p; } A;
void f(A c) /* 注意:c是结构变量名 */
{ int j;
c.b += 1; c.p+=2;
}
main()
{ int i;
A a={1,2};
f(a);
printf("%d,%d ", a.b, a.p);
}
程序运行后的输出结果是( )。
A.2,4
B.1,2
C.1,4
D.2,3
参考答案与解析:
相关试题