有以下程序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.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);

}

程序运行后的输出结果是【 】。


相关考题:

有以下程序#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)三个实在参数。

07310021:有以下函数调用语句:func(rec1,rec2+rec3,rec4);该函数调用语句中含有的实参个数是()A.3B.4C.5D.有语法错误

以下结构体类型说明和变量定义中正确的是()。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;

【单选题】有函数调用语句:func(rec1,rec2+rec3,(rec4,rec5));,此语句的实参数为()。A.3B.4C.5D.有语法错误

07310021:有以下函数调用语句:func(rec1,rec2+rec3,rec4);该函数调用语句中含有的实参个数是()A.3B.4C.5D.有语法错

设有如下定义,若要通过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;