题目内容
(请给出正确答案)
[单选题]
下列程序的输出结果为()。voidmain(){inta=14,b=1;printf("%d/n",(a&b)&&b);}
A.0
B.1
C.true
D.false
查看答案
如果结果不匹配,请 联系老师 获取答案
A.0
B.1
C.true
D.false
A.1234
B.2345
C.11111
D.1111
A.13542
B.54321
C.12345
D.123
A.无结果输出
B.输出null
C.输出hello
D.编译失败
请写出下列程序的输出结果。()
#include
int main() /{
char str[ ]="1A2B3C4D"; int i;
for(i=0;str[i]!='/0';i++)
if ((str[i]<'0') || (str[i]>'9'))
printf("%c",str[i]);
return 0;
/}
}
A.程序编译错误
B.输出结果为:found
C.输出结果为:notfoundothers
D.输出结果为:foundothers
A.构造
B.static构造
C.static
D.没有输出结果