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

题目内容 (请给出正确答案)

有以下程序 main() { int a,b,d=25; a=d/10%9; b=a&&(-1); printf("%d,%d\n",a,b); } 程序运行后的输出结果是

A.6,1

B.2,1

C.6,0

D.2,0


参考答案

更多 “ 有以下程序 main() { int a,b,d=25; a=d/10%9; b=a(-1); printf("%d,%d\n",a,b); } 程序运行后的输出结果是A.6,1B.2,1C.6,0D.2,0 ” 相关考题
考题 34 ) 有以下程序#include stdio.hint f(int n);main(){ int a=3,s;s=f(a);s=s+f(a);printf("%d\n",s);}int f(int n){ static int a=1;n+=a++;return n;}程序运行以后的输出结果是A)7B)8C)9D)10

考题 有以下程序#include stdio.hint a= 5;void fun(int b){ int a= 10;a+=b; printf("%d",a);}main(){ int c=20;fun(c);a+=c;printf("%d\n",a);}程序运行后的输出结果是 【 1 1 】 。

考题 有以下程序: void sum(int a[]) {a[0]=a[-1]+a[1];} main() {int a[10]={1,2,3,4,5,6,7,8,9,10}; sum(&a[2]); printf("%d\n",a[2]); } 程序运行后的输出结果是( )。A.6B.7C.5D.8

考题 有以下程序:includcstdio.hvoid fun(int *p){printf(%d\n,p[5]);}main( ){int a[10]={1,2,3,4,5,6,7,8,9,10};fun(a[3]);}程序运行后的输出结果是( )。A.5B.6C.8D.9

考题 有以下程序:includedstdio.hint f(int n); main( ){int a=3,s; s=f(a);s=s+f(a);printf(int f(int n);main( ){int a=3,s;s=f(a);s=s+f(a);printf(%dkn,s);}int f(int n){static int a=1;n+=a++;return n;}程序运行后的输出结果是( )。A.7B.8C.9D.10

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

考题 有以下程序: main() { int a, b, d=25; a=d/10%9; b=a(-1); printf("% d, % d\n", a, b) ; } 程序运行后的输出结果是______。A.6, 1B.2, 1C.6, 0 (D.2, 0

考题 有以下程序: main() {int a,b,d=25; a=d/10%9;b=a&&(-1); printf("%d,%d\n",a,B); } 程序运行后的输出结果是( )。A.6,1B.2,1C.6,0D.2,0

考题 有以下程序includeintfun(chars[]){intn=0;while(*s='0'){n=10*n+* 有以下程序 #include <stdio.h> int fun(char s[]) { int n=0; while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;} return(n); } main() {char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d\n",fun(s)); } 程序的运行结果是A.9B.61490C.61D.5

考题 有以下程序 include void fun(int a[],int n) { int i,t; for(i=0; 有以下程序 #include <stdio.h> void fun(int a[],int n) { int i,t; for(i=0;i<n/2;i++) {t=a[i]; a[i]=a[n-1-i]; a[n-1-i]=t;} } main() {int k[10]={1,2,3,4,5,6,7,8,9,10},i; fun(k,5); for(i=2;i<8;i++) printf("%d",k[i]); printf("\n"); } 程序的运行结果是______。A.345678B.876543C.1098765D.321678

考题 有以下程序: main() {int a,b,d=25; a=d/10%9; b=a(-1); printf("%d,%d\n",a,b); } 程序运行后的输出结果是 ______。A.6,1B.2,1C.6,0D.2,0

考题 有以下程序: include main( ){ int m =12,n=34;printf( "% d% d" ,m++ , ++n);printf( 有以下程序: #include <stdio.h>main( ){ int m =12,n=34; printf( "% d% d" ,m++ , ++n); printf("% d% d \n" ,n ++ , ++m); }程序运行后的输出结果是( )。A.12353514B.12353513C.12343514D.12343513

考题 有以下程序: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

考题 有以下程序 #includestdio.h int fun(char s[]) {int n=0; while(*s=9&&*s=0){n=10*n+*s-o;s++;) return(n); } main {char s[10]={6,1,*,4,*,9,*, 0,*); printf("%d",fun(s)); } 程序运行的结果是( )。A.9B.61490C.61D.5

考题 有以下程序main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a[3],*q=p+2;printf("%d\n",*p+*q);}程序运行后的输出结果是

考题 有以下程序: #includestdio.h main( ) { int a; scanf("%d",a); if(a++9)printf("%d\n",a); clsc printf("%d\n",a--); } 程序运行时从键盘输入9回车,则输出结果是( )。A.10B.11C.9D.8

考题 有以下程序 main() {int x=10,y=10;printf("%d%d\n",x--,--y);} 程序运行后的输出结果是( )A.10 10B.9 9C.9 10D.10 9

考题 有以下程序: #includedstdio.h int f(int n); main( ) {int a=3,s; s=f(a);s=s+f(a);printf("%dkn",s); } int f(int n) {static int a=1; n+=a++; return n; } 程序运行后的输出结果是( )。A.7B.8C.9D.10

考题 以下程序的结果是 ( ) main( ) { unsigned int a=3,b=10; printf("%d\n",a>1); }A.1B 以下程序的结果是 ( )main( ){ unsigned int a=3,b=10;printf("%d\n",a<<2|b>>1);}A.1B.5C.12D.13

考题 有以下程序 include int fun(char s[ ]) { int n=0; while(*s='0 有以下程序#include <stdio.h>int fun(char s[ ]){ int n=0;while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;}retum(n);}main( ){ char s[10]={'6','1','*','4','*','9','*','0','*'};printf("%d\n",fun(s));}程序的运行结果是A.9B.61490C.61D.5

考题 有以下程序main(){ int a,b;for(a=1,b=1;a=20)break; if(b%3==1) {b+=3;continu 有以下程序 main() { int a,b; for(a=1,b=1;a<=100;a++) { if(b>=20)break; if(b%3==1) { b+=3; continue; } b-=5; } printf("%d\n",A) ; } 程序运行后的输出结果是( )A.7B.8C.9D.10

考题 有以下程序:include main ( ){int a =666,b =888;printf( "%'d \n", a,b); 程序运行 有以下程序: #include <stdio, h> main ( ) { int a =666,b =888; printf( "%'d \n", a,b); 程序运行后的输出结果是( )。A.错误信息,B.666C.888D.666,888

考题 有以下程序:includeint fun(char s[]){ intn=0;while(*s='0'){n=10 有以下程序: #include <stdio.h> int fun(char s[]) { int n=0; while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;} return(n); } main() { char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d\n",fun(s)); } 程序的运行结果是( )。A.9B.61490C.61D.5

考题 有以下程序: include main( ) {int a,b,d =25; a = d/10%9;b = a(-1); prin 有以下程序: #include <stdio.h> main( ) { int a,b,d =25; a = d/10%9;b = a(-1); printf("% d,% d\n" ,a,b); } 程序运行后的输出结果是( )。A.6,1B.2,1C.6,0D.2,0

考题 试题27有以下程序#include stdio.hvoid fun(int *p){ printf(“%d\n”,p[5]);}main(){ int a[10]={1,2,3,4,5,6,7,8,9,10};fun(a[3]);}程序运行后的输出结果是()A.5B.6C.8D.9

考题 单选题有以下程序:#include int f(int n);main(){ int a=3,s; s=f(a); s=s+f(a); printf(%d,s);}int f(int n){ static int a=1; n+=a++; return n;}程序运行以后的输出结果是(  )。A 7B 8C 9D 10

考题 单选题有以下程序 void sum(int a[]) { a[0]=a[-1]+a[1]; } main() { int a[10]={1,2,3,4,5,6,7,8,9,10}; sum(a[2]); printf("%d/n",a[2]); } 程序运行后输出结果是()A 6B 7C 5D 8

考题 单选题有以下程序#include int fun(char s[]){ int n=0; while(*s='0') {  n=10*n+*s-'0';  s++; } return (n);}main(){ char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d",fun(s));}程序的运行结果是(  )。A 61490B 61C 9D 5