题目内容

结构体变量所占内存长度是( )。

查看答案
更多问题

访问结构体成员使用( )运算符。

结构体数组的数组元素类型为( )

有以下程序#include typedef struct{int num;double s}REC;void fun1( REC x ){x.num=23;x.s=88.5;}main(){REC a={16,90.0 };fun1(a);printf(“%d\n”,a.num);}程序运行后的输出结果是 。

下列程序的运行结果为( )#include #include struct A{int a;char b[10];double c;};void f (struct A *t);main(){struct A a={1001,"ZhangDa",1098,0};f(&a);printf("%d,%s,%f\n",a.a,a.b,a.c);}void f(struct A *t){strcpy(t->b,"ChangRong");}

答案查题题库