下面程序段的输出为( )。 #include "stdio.h" main { printf("%d\n",12<<2); }
A.0
B.47
C.48
D.24
第1题:
以下四个程序中,完全正确的是()
A.#include <stdio.h> main(); {/*/ programming /*/ printf("programming!n");}
B.#include <stdio.h> main() {/* programming */ printf("programming!n"); }
C.#include <stdio.h> main() {/*/* programming */*/ printf("programming!n"); }
D.include <stdio.h> main() {/* programming */ printf("programming!n"); }
第2题:
下面程序段的输出为 #include"stdio.h" main() { printf("%d\n",12<<2);}
A.0
B.47
C.48
D.24
第3题:
下面程序段的输出为
#include "stdio.h"
main()
{ printf("%d\n",12<<2);}
A.0
B.47
C.48
D.24
第4题:
若有下面的程序段#include "stdio.h"main(){ int i=6; while(i--) printf("%d",--i); printf("\n");}那么程序的输出结果为A.531 B.420C.654321 D.死循环
第5题:
有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。
A.21
B.11
C.6
D.1
第6题:
现有如下程序段,则程序段的输出结果为 【16】 。
#include "stdio.h"
int fun()
{static int k;
return k;}
main()
{int m;
m=fun();
printf("%d\n",m);}
第7题:
下面程序段的输出为
#include "stdio.h"
main()
{ printf("%d\n",12<<2);}
A.0
B.47
C.48
D.24
第8题:
下面程序段的输出为 #nclude"stdio.h" main() { printf("%d\n",12<<2);}
A.0
B.47
C.48
D.24
第9题:
为使*p=20,下面正确的程序是 ( )
A.# include<stdio.h> main( ) { int a=10,b=20,*p=&b; printf("%d\t%d\n",p,*p); } *p)
B.# include<stdio.h> main( ) { int a=10,b=20,*p=b; printf("%d\t\%d\n",p,*p) }
C.# include<stdio.h> main( ) { int a=10,b=20,*p; p=&a; p + +; printf("%d\t\%d\n",p,*p);} }
D.# include<stdio.h> main( ) { int a=10,b=20,*p; *p=20; printf("%d\t\%d\n",p,*p); }