有以下程序:
#include
程序运行后的输出结果是( )。
A)26
B)19
C)10
D)20
第1题:
有以下程序 #include<stdio.h> main() {printf("%d\n",NULL);} 程序运行后的输出结果是
A.0
B.1
C.-1
D.NULL没定义,出错
第2题:
有以下程序: #include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是( )。
A.0
B.1
C.-1
D.NULL没定义,出错
第3题:
有以下程序: #include <stdio.h> #include <string.h> main() { char str[][20]={"Hello","Beijing"},*P=str[0]; printf("%d\n",strlen(p+20)); } 程序运行后的输出结果是( )。
A.0
B.5
C.7
D.20
第4题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
}
第5题:
有以下程序: #include <stdio.h> main() { printf("%d\n",NULL)"} 程序运行后的输出结果是( )。
A.0
B.1
C.-1
D.NULL没定义,出错