网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
有以下程序:#include main(){ int x=011; printf(%d,++x);}程序运行后的输出结果是(  )。
A

12

B

11

C

10

D

9


参考答案

参考解析
解析:
x=011表示按照八进制赋值,则十进制数为9,所以输出++x的结果为10。答案选择C选项。
更多 “单选题有以下程序:#include main(){ int x=011; printf(%d,++x);}程序运行后的输出结果是(  )。A 12B 11C 10D 9” 相关考题
考题 ( 22 )有以下程序,其中 k 的初值为八进制数#include stdio.hmain (){ int k = 011 ;printf ( " %d \ n ", k++ ) ;}程序运行后的输出结果是A ) 12B ) 11C ) 10D ) 9

考题 有以下程序#include stdio.hfun(int x){ if(x/20) f un(x/2);printf("%d ",x);}main(){ fun(6);printf("\n"); }程序运行后的输出结果是 【 1 5 】 。

考题 有以下程序: #includestdio.h main( ) {int X=011; printf("%d\n",++x); } 程序运行后的输出结果是( )。A.12B.11C.10D.9

考题 以下程序的输出结果是( )。 include void fun(int x) {if(x/2>0)fun(x/2); printf("%d", 以下程序的输出结果是( )。include<stdio.h>void fun(int x){ if(x/2>0)fun(x/2);printf("%d",x);}main(){fun(3);printf("\n");}

考题 有以下程序 include define F(X,Y) (X)*(Y) main( ) { int a=3, b=4; prin 有以下程序#include <stdio.h>#define F(X,Y) (X)*(Y)main( ){ int a=3, b=4;printf("%d\n", F(a++, b++));}程序运行后的输出结果是A.12B.15C.16D.20

考题 有以下程序:include main( ){ unsigned int a; int b=-1;a=b;printf(" % u", a);程序 有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。A.-1B.65535C.32767D.-32768

考题 有以下程序:includedefmeF(X,Y)(X)*(Y)main(){int a=3,b=4;printf("%d\n",F(a++,b++ 有以下程序: #include<studio.h> #defme F(X,Y) (X)*(Y) main() { int a=3,b=4; printf("%d\n",F(a++,b++)); } 程序运行后的输出结果是( )。A.12B.15C.16D.20

考题 以下程序运行后的输出结果是( )。 include main() { int x=20; printf("%d", 0 以下程序运行后的输出结果是( )。include<stdio.h>main(){ int x=20;printf("%d", 0<x<20);printf("%d\n", 0<x x<20);}

考题 下面程序的运行结果是( )。include main(){int a=25; fun(A); }fun(int *x){ print 下面程序的运行结果是( )。include<stdio.h>main(){int a=25;fun(A);}fun(int *x){ printf("%d\n",++*x);}

考题 有以下程序:includedefine X 5+6main(){int a=2,c;C=X*2:printf("%d",C);}程序运行后 有以下程序: #include<stdio.h> #define X 5+6 main() {int a=2,c; C=X*2: printf("%d",C); } 程序运行后的输出结果是( )。A.17B.22C.16D.11

考题 以下程序运行后,输出结果是______。 define P4.5 define S(x)P*x*x include main() { 以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }A.49.5B.112.5C.18D.24

考题 有以下程序#include stdio.h#define S(x) (x)*x*2main( ){ int k=5, j=2;printf( "%d,”,s(k+j) ); printf(”%d\n”,s( (k-j) ) );}程序运行后的输出结果是A) 98,18B) 39,11C) 39,18D) 98,11

考题 以下程序的输出结果是( )。 include main()fint x=0; sub(x,16,2); printf("%d\n", 以下程序的输出结果是( )。include<stdio.h>main()fint x=0;sub(x,16,2);printf("%d\n",x);}sub(int*a,int n,int k){if(k<=n) sub(a,n/2,2*k);*a+=k;}

考题 以下程序运行后的输出结果是( )。 include main() {char ch[]="abcd",x[4][4];int i; f 以下程序运行后的输出结果是( )。 include<string.h> main() {char ch[]="abcd",x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf("%s",x[i][i]); printf("\n"); }

考题 有以下程序:includemain(){int x=3,y=2,z=1; printf("%d\n",x/y~z);程序运行后的 有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y~z); 程序运行后的输出结果是( )。A.3B.2C.1D.0

考题 请教:2011年3月计算机等级考试二级C语言真题(标准参考答案版第1大题第18小题如何解答? 【题目描述】 (18)有以下程序 #include stdio.h main() { int x=011; printf(%d\n,++x); } 程序运行后的输出结果是 A)12 B)11 C)10 D)9

考题 有以下程序#includestdio.hmain(){int x=011;printf(“%d\n”,++x);}程序运行后的输出结果是A.12B.11C.10D.9

考题 有以下程序#includemain(){ int x=011;printf(%d\n,++x);}程序运行后的输出结果是A.12B.11C.10D.9

考题 有以下程序:include define F(X,Y)(X)*(Y)main(){int a=3,b=4;printf("%d\n",F(a++,b 有以下程序: #include <stdio.h> #define F(X,Y)(X)*(Y) main() { int a=3,b=4; printf("%d\n",F(a++,b++)); } 程序运行后的输出结果是( )。A.12B.15C.16D.20

考题 试题11以下程序运行后的输出结果是______.#include stdio.hvoid fun(int x){ if(x/50) fun(x/5)printf(“%d”, x);}main(){ fun(11); printf(“\n”);}

考题 (18)有以下程序#include stdio.hmain(){ int x=011;printf("%d\n",++x);}程序运行后的输出结果是A)12B)11C)10D)9

考题 下列程序运行后的输出结果是()。  #include   main( )  { int x=9;   for(; x0; x--){   if(x%3==0){     printf(“%d”,--x);     continue;    }   }  }

考题 填空题下列程序运行后的输出结果是()。  #include   main( )  { int x=9;   for(; x0; x--){   if(x%3==0){     printf(“%d”,--x);     continue;    }   }  }

考题 单选题有以下程序:#include int f(int x); main(){ int n=1,m;  m=f(f(f(n))); printf(%d,m); }int f(int x) { return x*2;} 程序运行后的输出结果是(  )。A 4B 2C 8D 1

考题 单选题有以下程序:#include int f(int x,int y){ return((y-x)*x);}main(){ int a=3,b=4,c=5,d; d=f(f(a,b),f(a,c)); printf(%d,d);}程序运行后的输出结果是(  )。A 10B 9C 8D 7

考题 单选题有以下程序#include #include main(){ int a = 3; printf(%d,(a+=a-=a*a));}程序运行后的输出结果是(  )。A -12B 9C 0D 3

考题 单选题有以下程序(其中k的初值为八进制数):#include main(){ int k=011; printf(%d,k++);}程序运行后的输出结果是(  )。A 12B 11C 10D 9