
以下程序的输出结果是 #include<iostream.h> void main() { char x=040; cout < < (X < < 1) ;}
A.100
B.80
C.64
D.32

A.100
B.80
C.64
D.32
第1题
以下程序的输出结果是 【7】 。
#include "stdio.h"
main()
{int a=065;
printf("%d\n",--a);
}
第2题
以下程序的输出结果是_____.
# include
main()
{ printf(“%d\n”,strlen(“IBM\n012\1\\”));
}
第3题
A.12
B.15
C.6
D.5
第4题
以下程序的输出结果是 ______。 #include<stdio> main() {int a=200; #define a 100 printf("%d",a) ; #undefa printf("%d",a) ; }
A.200 100
B.100 100
C.100 200
D.200 200
第5题
以下程序输出的结果是【 】。 include <stdio.h> main() { int a=5,b=4,c=3,d; d=(a>b>c); printf("%d\n",d); }
第6题
A.8
B.9
C.17
D.20
第8题
阅读以下程序 #include<iostream.h> void main() { charline[10]; in>>line; cout<<line<<endl; } 如运行时输入This is an example.<CR>,则程序的输出结果是()。
A.This
B.This is
C.This is a
D.This is an example.
第9题
设已执行预编译命令#include<string.h>,以下程序段的输出结果是 char s[]=" an apple" ; printf("%d\n",strlen(s));
A.7
B.8
C.9
D.10
第10题
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { int a=1,b=3,c=5; if (c=a+b) printf("yes\n"); else printf("no\n"); }