网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序
include<stdio.h>
typedef struct
{int num;double s;}REC;
void funl(REC x){x.nllm=23;x.s=88.5;}
main( )
{REC a={16,90.0);
funl(A);
prinff(“%d\n”,a.num);
}
程序运行后的输出结果是【 】。
参考答案
更多 “ 有以下程序includestdio.htypedef struct{int num;double s;}REC;void funl(REC x){x.nllm=23;x.s=88.5;}main( ){REC a={16,90.0);funl(A);prinff(“%d\n”,a.num);}程序运行后的输出结果是【 】。 ” 相关考题
考题
有以下程序#include stdio.htypedef 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);}程序运行后的输出结果是 【 1 4 】 。
考题
有以下程序 include typedef struct { int num;double s; }REC; void funl(REC *x) { x
有以下程序 include<stdio.h> typedef struct { int num;double s; }REC; void funl(REC *x) { x->num=23;x->s=88.5; } void main() { REC a={16,90.0}; fun1(A); printf("%d\n",a.num); } 程序运行后的输出结果是( )。
考题
设有以下程序段:要求输入字符串给结构体变量rec的title成员,错误的输入语句是( )。A.seanf(”%s”Ptrtitle);B.scanf(”%s”,rec.title);C.scanf(’’%s”,(*pu).title);D.scanf(”%s”,ptr-title);
考题
有如下函数调用语句 func(rec1,rec2+rec3,(rec4,rec5)); 该函数调用语句中,含有的实参个数是()。 A) 3 B) 4 C) 5 D) 不确定A.func(rec1,rec2+rec3,(rec4,rec5))函数中共有rec1,rec2+rec3,(rec4,rec5)三个实在参数。B.func(rec1,rec2+rec3,(rec4,rec5))函数中共有rec1,rec2+rec3,(rec4,rec5)三个实在参数。C.func(rec1,rec2+rec3,(rec4,rec5))函数中共有rec1,rec2+rec3,(rec4,rec5)三个实在参数。D.func(rec1,rec2+rec3,(rec4,rec5))函数中共有rec1,rec2+rec3,(rec4,rec5)三个实在参数。
考题
以下结构体类型说明和变量定义中正确的是()。A.typedef struct {int n; char c;} REC; REC x,y;B.struct REC; {int n; char c;}; REC x,y;C.typedef struct REC ; {int n=0; char c=’A’; } x,y;D.struct {int n; char c; } REC x,y;
考题
设有如下定义,若要通过px引用rec中的x域,正确的语句()。 struct aa { int x; float y; } rec, *px; px=rec;A.px.x;B.px->x;C.*px->x;D.*px.x;
热门标签
最新试卷