0
变量无定义,输出不确定
-1
1
第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> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。
A.15
B.16
C.12
D.59
第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() { int *p,j; p=NULL p=fun(); for(j=0;j<4;j+){printf("%d",*p);p++;} } int*fun() { int a[4],k; for(k=0;k<4;k++)a[k]=k; return(A) ; } 程序运行后的输出结果是( )
A.程序有错不能运行
B.输出4个NULL
C.输出0 1 2 3
D.输出1 1 1 1
第6题:
以下程序的输出结果是( )。 #include<stdio.h> main() { printf("%d\n",NULL); }
A.不确定的值(因变量无定义)
B.0
C.-1
D.1
第7题:
有以下程序 #include <stdio .h> main () { printf("%d\n", NULL); }
A.0
B.1
C.-1
D.NULL没定义,出错
第8题:
有以下程序: #include <stdio, h> main ( ) { int a =666,b =888; printf( "%'d \n", a,b); 程序运行后的输出结果是( )。
A.错误信息,
B.666
C.888
D.666,888
第9题:
以下程序的输出结果是_______。 #include<stdio.h> main() { printf("%d\n",NULL); }
A.不确定的(因变量无定义)
B.0
C.-1
D.1
第10题:
-1
0
1
7
第11题:
7
-1
1
0
第12题:
AAAA
CC
BBBCC
BBBB
第13题:
有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。
A.-1
B.65535
C.32767
D.-32768
第14题:
有以下程序: #include <stdio. h> main ( ) { char a :'a',b; printf( "% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是( )。
A.b,b
B.b,c
C.a,b
D.a,c
第15题:
有以下程序 #include<stdio.h> main() {printf("%d\n",NULL);} 程序运行后的输出结果是
A.0
B.1
C.-1
D.NULL没定义,出错
第16题:
有以下程序: #include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是( )。
A.0
B.1
C.-1
D.NULL没定义,出错
第17题:
以下程序的输出结果是______。 #include<stdio.h> main() {printf("%d\n",NULL); }
A.不确定的值
B.0
C.-1
D.1
第18题:
有以下程序: #include <stdio.h> main( ) { intc = 35; printf( "% d \n" , e&c); } 程序运行后输出结果是( )。
A.0
B.70
C.35
D.1
第19题:
以下程序的输出结果是(44)。 #include"" void main( ){ printf("%d\n",NULL);}
A.不确定的值
B.0
C.-1
D.1
第20题:
下列程序的输出结果是______。#include <stdio.h>main (){ printf("%d\n",NULL);}
A.不确定(因变量无定义)
B.0
C.-1
D.1
第21题:
下列程序的输出结果是(). main() { printf("%d/n",null); }
第22题:
6
1
0
3
第23题:
-12
9
0
3