[单选题]

有以下程序
#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

参考答案与解析:

相关试题

有以下程序<br />#include <stdio.h><br />typedef struct { int b, p; } A;<br />void