单项选择题
有以下程序
#include<stdio.h>
typedef structint 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\n",a.b,a.p);
程序运行后的输出结果是______。
A.1,2
B.2,4
C.1,4
D.2,3
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下结构体类型说明和变量定义中正确的是______。
A.typedef struct int n;char c;REC;
REC t1,t2;
B.struct REC;
int n;char c;);
REC t1,t2;
C.typedef struct REC;
int n=0;char c=’A’;t1,t2;
D.struct
int n;char c;REC;
REC t1,t2;
点击查看答案&解析
单项选择题
下面结构体的定义语句中,错误的是______。
A.struct ordint x;int y;int z;struct ord a;
B.struct ordint x;int y;int z;;struct ord a;
C.struct ord int x;int y;int z;a;
D.streetint x;int y;int z;)a;
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
以下程序依次把从终端输入的字符存放到f文...