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

题目内容 (请给出正确答案)
单选题
下列程序的运行结果是() #include main() { int a=2,c=5; printf("a=%d,b=%d/n",a,c); }
A

a=%2,b=%5

B

a=2,b=5

C

a=d,b=d

D

a=%d,b=5d


参考答案

参考解析
解析: 暂无解析
更多 “单选题下列程序的运行结果是() #include main() { int a=2,c=5; printf("a=%d,b=%d/n",a,c); }A a=%2,b=%5B a=2,b=5C a=d,b=dD a=%d,b=5d” 相关考题
考题 有以下程序#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 】 。

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

考题 下面程序的运行结果是( )。 #include"stdio.h" main() {int i; for(i=1;i<=5;i++) { if(i%2) printf("*"); else printf("#"); } }A.*#*#*B.#*#*#*C.*#*#D.#*#*

考题 下列程序的运行结果是() include main() {int x=5,a=1,b=2,c=5,d=0; if(a 下列程序的运行结果是( )#include<stdio.h>main(){ int x=5,a=1,b=2,c=5,d=0;if(a<b)if(b!=3)if(!c)x=1;elseif(d) x=l;else x=-1;printf("%d",x);}A.-1B.0C.1D.不确定的值

考题 下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5

考题 下列程序的运行结果是()。 include main() {int a=2,b=3,c=4;ifa 下列程序的运行结果是( )。#include<stdio.h>main(){ int a=2,b=3,c=4;ifa<B)if(b<0)c=0;else c+=1;printf("%d\n",C) ;}A.2B.3C.5D.4

考题 以下程序段的运行结果是( )。 include main() {int x=2,y=1: switch(x) {case 1: switch 以下程序段的运行结果是( )。 include<stdio.h> main() {int x=2,y=1: switch(x) {case 1: switch(y) {case 0:printf("x=2,y=1\n");break; case 1:printf("y=1\n");break; } case 2:printf("x=2\n"); } }

考题 下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5

考题 以下程序运行后的输出结果是( )。 include main(){ int a=1, b=7; do { b=b/2; a+=b 以下程序运行后的输出结果是( )。include<stdio.h>main(){ int a=1, b=7;do {b=b/2; a+=b;} while(b>1);printf("%d\n",A);}

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

考题 下列程序的输出结果是()。 include int b=2; int fune(int*a) {b+=*a;return b;} main( 下列程序的输出结果是( )。 #include<stdio.h> int b=2; int fune(int*a) { b+=*a;return b;} main() { int a=1,t=2; t+=func(a); printf("%d\n",t); }A.4B.5C.6D.8

考题 以下程序的输出结果是()。include main(){int i; for(i=1;i 以下程序的输出结果是( )。 #include <stdio.h> main() { int i; for(i=1;i<5;i++) { if(i%2) printf("*"); else continue; printf("#"); } printf("$\n");A.*#*#*#$B.#*#*#*$C.*#*#$D.#*#*$

考题 以下程序运行后的输出结果是( )。 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

考题 有以下程序 include main() { int i=5; do { if(i%3==1) 有以下程序 #include <stdio.h> main() { int i=5; do { if(i%3==1) if(i%5==2) { printf"*%d",i); break; } i++; } while(i!=0); printf("\n"); } 程序的运行结果是______。A.*7B.*3*5C.*5D.*2*6

考题 下列程序的输出结果是【】。 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 main() {int a[5]={2,4,6,8,10},*p;p=a;p++;printf(" 下列程序舶输出结果是【 】。include <stdio.h>main(){int a[5]={2,4,6,8,10},*p;p=a;p++;printf("%d",*p);}

考题 下列程序的运行结果是()。include main(){int a=2,b=3,c=4; if(a 下列程序的运行结果是( )。 #include <stdio.h> main() { int a=2,b=3,c=4; if(a<b) if(b<0) c=0; else c+=1; printf("%d\n", c); }A.2B.3C.5D.4

考题 下列程序的运行结果是()。includemain(){int a=2,b=3,c=4; if(a 下列程序的运行结果是( )。 #include<stdio.h> main() { int a=2,b=3,c=4; if(a<B) if(b<0) c=0; else c+=1; printf("%d\n",C) ; }A.2B.3C.5D.4

考题 以下程序的运行结果是______。 include main() {int a[]:{1,2,3,4,5,6,7,8,9,10,11,12 以下程序的运行结果是______。 #include <stdio.h> main() {int a[]:{1,2,3,4,5,6,7,8,9,10,11,12): int *p=a+5,*q=NULL: *q=*(p+5): printf("%d %d\n",*p,*q); }A.运行后报错B.66C.612D.5 5

考题 以下程序的运行结果是() include main() { int a=015,b=22; printf("%d,%d\n",a 以下程序的运行结果是 ( ) # include<stdio.h> main( ) { int a=015,b=22; printf("%d,%d\n",a+ +,- -b); }A.15,22B.15,21C.13,21D.14,21

考题 执行下列程序时输入12345678,程序的运行结果是______。 include main() { int x,y; sca 执行下列程序时输入12345678,程序的运行结果是______。 #include<stdio.h> main() { int x,y; scanf("%2d%2d"); printf("%d\n",x+y); }A.17B.46C.15D.9

考题 有以下程序: include main ( ) int a=3,b=4,c=5,d=2;if(a>b) if(b>c)printf("%d", 有以下程序: #include < stdio. h > main ( ) int a=3,b=4,c=5,d=2; if(a>b) if(b>c)printf("%d",d++ +1); else printf( "% d", + + d + 1 ); printf( "% d \n" ,d); 程序运行后的输出结果是( )。A.2B.3C.43D.44

考题 下列程序的输出结果是()。 include main() {int a=4; printf("%d\n",(a+=a-=a*A) ); }A 下列程序的输出结果是( )。#include<stdio.h>main(){ int a=4;printf("%d\n",(a+=a-=a*A) );}A.-8B.14C.0D.-24

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

考题 如下程序的运行结果是______。 include main() { int x=y=3,z=1; printf ("%d%d\n",(++ 如下程序的运行结果是______。 #include<stdio.h> main() { int x=y=3,z=1; printf ("%d%d\n",(++x,y++),z+2); }A.3 4B.4 2C.4 3D.3 3

考题 下列程序的运行结果是() #include main() { int a=2,c=5; printf("a=%d,b=%d/n",a,c); }A、a=%2,b=%5B、a=2,b=5C、a=d,b=dD、a=%d,b=5d