单选题
C++
题号 #2250902
在下列字符中,不允许作为C++标识符的是( )。
参考答案
D
答案解析
D。【解析】在C++中,标识符只能以字母、数字和下画线组成,并且首字母不能为数字。所以D选项错误。
你可能感兴趣的试题
A.if(x==O)y=1;elsey=2;
B.if(x==0)theny=1elsey=2
C.if(x==O)y=1elsey=2;
D.ifx==0y=1elsey=2;
A.intx[3]={0,0,0};
B.intx[]={0};
C.staticintx[3]={0);
D.intx[]={0,0,0};