首页 > 自考
题目内容 (请给出正确答案)
[主观题]

若有定义语句:int a=3,b=2,c=1;,则表达式a<b?a:b的值是【 】。

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“若有定义语句:int a=3,b=2,c=1;,则表达式a<…”相关的问题
第1题
若有定义语句:int a【21【3】,* P【3】;则以下语句中正确的是()

A.p:a

B.p[0]=a

C.p[0]=&a[1][2]

D.1a[1]=&a

点击查看答案
第2题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

点击查看答案
第3题
若有以下定义和语句,则对a数组元素的正确引用为()。

int a[2][3],(*p)[3];

p=a;

A.(p+1)[0]

B.*(*(p+2)+1)

C.*(p[1]+1)

D.p[1]+2

E.p[1][1]

点击查看答案
第4题
若有以下定义和语句,则对a数组元素地址的正确引用为int a[2][3],(*p)[3];p=a;A.*(p+2)B.p[2]C.p[

若有以下定义和语句,则对a数组元素地址的正确引用为 int a[2][3],(*p)[3]; p=a;

A.*(p+2)

B.p[2]

C.p[1]+1

D.(p+1)+2

点击查看答案
第5题
若有定义int测执行for(i=0;i<3;i++){printf("hello")};语句后i的值为()

A.0

B.1

C.3

D.4

点击查看答案
第6题
若有定义int a=6,x;执行赋值语句x=--a/2;后,x=______,a=______。
点击查看答案
第7题
若有以下定义,则不正确的赋值语句是( )。 int a,b; float x;

A.a=1,b=2

B.b++

C.a=b=5

D.b=int(x);

点击查看答案
第8题
若有定义语句 :int m[]={5,4,3,2,1},i=4; ,则下面对 m 数组元素的引用中错误的是A)m[--i] B

若有定义语句 :int m[]={5,4,3,2,1},i=4; ,则下面对 m 数组元素的引用中错误的是

A)m[--i]

B)m[2*2]

C)m[m[0]]

D)m[m[i]]

点击查看答案
第9题
若有以下定义语句: union data {int i;char c;float f;)a; int n=5; 则以下
语句正确的是()。

A.a=5;

B.a={2,‘a’,1,2};

C.printf(“%d\n”,a);

D.a.1=n;

点击查看答案
第10题
若有以下定义的语句 struct student { int age; int num; }; struct student stu[3]={{1001,20},

若有以下定义的语句

struct student

{ int age;

int num; };

struct student stu[3]={{1001,20},{1002,19},{1003,21}};

main()

{ struct student *p;

p=stu;

… }

则以下不正确的引用是

A.(p++)->num

B.p++

C.(*p).num

D.P=&stu.age.

点击查看答案
第11题
若有以下定义的语句:struct student{ int age; int num;};struct student stu[3]={{1001,20},{10

若有以下定义的语句: struct student { int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() { struct student *p; p=stu; …} 则以下不正确的引用是()。

A.(p++)->num

B.p++

C.(*p).num

D.P=&stu.age.

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改