单选题
C语言
2017-04-03
有以下定义语句,编译时会出现编译错误的是( ):
A.char a='\x2d';
B.char a='\n';
C.char a='a';
D.char a="aa":
参考答案
D
答案解析
D选项中将字符串常量“aa”赋给字符变量a是错误的。
你可能感兴趣的试题
A.if(x>=0)y=sqrt(x);
if(X<0)y=sqrt(-x);
if(X<0)y=sqrt(-x);
B.if(x>=0).V=sqrt(x);
else y:sqrt(-x);
else y:sqrt(-x);
C.y=sqrt(x);
if(x<0)y=sqrt(-x);
if(x<0)y=sqrt(-x);
D.y=sqrt(x>=0? x:-x);


