首页/ 题库 / [多选题]

写出程序的运行结果。

写出程序的运行结果。

        #include  <stdio.h>

        main彩蛋

        {  int a, b;

           scanf ( ”%d%d", &a, &b);

           if ( ++a >= b )  printf( ”Yes”);

           printf ( " a+b =%d\n", a+b );

        }

       如果输入:a=6,b=8,则输出结果是___________。

多选题
2021-07-17 19:48
" a+b 、%d\n", 14
① a+b、15
①  a+b、14
、15 
查看答案

正确答案
① a+b=15

试题解析

标签:
感兴趣题目
有以下程序: #include<stdio.h> main( ) { char a=H; a=(a>=Aa<=2)?(a-A+a):a; printf("%c ",a); } 程序运行后的输出结果是( )。
有以下程序: #include <stdio.h> main( ) { int a=2,b; b=a<<2;printf("%d ",b); } 程序运行后的输出结果是( )。
有以下程序 #include  char fun(char *c) {  if(*c<='Z'&&*c>='A')   *c-='A'-'a';  return *c; } main() {  char s[81],*p=s;  gets(s);  while(*p)  {   *p=fun(p);   putchar(*p);   p++;  }  printf(); } 若运行时从键盘上输入OPEN THE DOOR<回车>,程序的输出结果是(  )。
有以下程序:include <stdio.h> main( ) { int a=7,b=8,* p,*q, *r; p=&a;q=&b; r=p; p=q;q=r; printf(" % d,% d,% d,% d \n", * p, * q.a,b);程序运行后的输出结果是()。
有以下程序:include <stdio.h> main( ) { int a=7,b=8,* p,*q, *r; p=&a;q=&b; r=p; p=q;q=r; printf(" % d,% d,% d,% d ", * p, * q.a,b);程序运行后的输出结果是()。
有以下程序: #include <stdio.h> struct s { int x,y;} data[2]={10,100,20,200}; main() { struct s *p=data; printf("%d ",++(p->x)); 程序运行后的输出结果是( )。
有以下程序: #include<stdio.h> main( ) {char ch[3][5]={"AAAA","BBB","CC"}; printf("%s ",ch[l]); } 程序运行后的输出结果是( )。
有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。
有以下程序: #include<stdio.h> main( ) {int X=011; printf("%d ",++x); } 程序运行后的输出结果是( )。
有以下程序: #include<stdio.h> main() { int a[]={1,2,3,4},y,*p=&a[3]; --p;y=*p;printf("y=%d ",y); } 程序的运行结果是( )。
有以下程序:
#include<stdio.h>
#include<string.h>
main(  )
{printf{"%d",strlen("%d",strlen("ATS0121"));}   
程序运行后的输出结果是(  )。
有以下程序: #include <stdio.h> #include <string.h> main() { char str[][20]={"Hello","Beijing"},*P=str[0]; printf("%d ",strlen(p+20)); } 程序运行后的输出结果是( )。
相关题目

写出程序的运行结果。

        #include  <stdio.h>

        main彩蛋

        {  int a, b;

           scanf ( ”%d%d", &a, &b);

           if ( ++a >= b )  printf( ”Yes”);

           printf ( " a+b =%d\n", a+b );

        }

       如果输入:a=6,b=8,则输出结果是___________。

写出程序的运行结果。

        #include  <stdio.h>

        main彩蛋

        {  int a, b;

           scanf ( ”%d%d", &a, &b);

           if ( ++a >= b )  printf( ”Yes”);

           printf ( " a+b =%d\n", a+b );

        }

       如果输入:a=6,b=8,则输出结果是___________。

写出程序的运行结果。

        #include  <stdio.h>

        main彩蛋

        {  int a, b;

           scanf ( ”%d%d", &a, &b);

           if ( ++a >= b )  printf( ”Yes”);

           printf ( " a+b =%d\n", a+b );

        }

       如果输入:a=6,b=8,则输出结果是___________。

写出程序的运行结果。

      

#include <stdio.h>

      main彩蛋

      {  int i=0,j=0,k=0,m;

         for ( m=0;m<4;m++ )

            switch ( m )

            {   case 0:i=m++;

                case 1:j=m++;

                case 2:k=m++;

                case 3:m++;

            }

           printf ("\n%d,%d,%d,%d",i,j,k,m);

        }

该程序的执行结果是______。

若变量已正确定义,下面程序段的输出结果是(  )。

#include<stdio.h>

main()

{float x=1.236547;

printf("%f\n",(int)(x*1000+0.5)/(float)1000);

}

若变量已正确定义,下面程序段的输出结果是(  )。

#include<stdio.h>

main()

{float x=1.236547;

printf("%f\\n",(int)(x*1000+0.5)/(float)1000);

}

有以下程序: #include < stdio. h > main( ) { ehar str[ ] [10] = { "China" ," Beijing" } , * p = str[o]; printf( "% s ", p + 10); }程序运行后的输出结果是( )。
有以下程序: #include<stdio.h> void fun(char**p) { ++P;printf("%s ",*p);} main() char*a[]={"Morning","Afternoon","Evening","Night"}; fun(A); } 程序的运行结果是( )。
有以下程序 #include<stdio.h> void fun(char**p) {++p;printf("%s",*p);} main {char*a[]={"Morning","Afternoon","Evening"," Night"); fun(a); } 程序的运行结果是( )。
有以下程序#include <stdio.h>void fun(char **p){ p=p+2; printf("%s\n",*p);}main(){ char *a[]={"Morning","Afternoon","Evening","Night"}; fun(a);}程序的运行结果是A.rningB.afternoonC.ternoon D.Evening

写出程序的运行结果。

        #include  <stdio.h>

        main

        {  int a, b;

           scanf ( ”%d%d", &a, &b);

           if ( ++a >= b )  printf( ”Yes”);

           printf ( " a+b =%d\n", a+b );

        }

       如果输入:a=6,b=8,则输出结果是___________。

下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
有以下程序 #include<stdio.h> struct ord { int x,y;} dt[2]={1,2,3,4}; mare() { struct ord*p=dt; printf("%d,",++p->x); printf("%d ",++p->y); } 程序的运行结果是______。
有以下程序:#include main(){ int x=011; printf(%d,++x);}程序运行后的输出结果是(  )。
下列程序的输出结果是( )。 #include<stdio.h> main { int a[2][3]={{1,2,3),{4,5,6)),(*p)[3],i; p=a ; for(i=0;i<3;i++) { if(i<2) p[1][i]=p[1][i]-1; else p[1][i]=1; } printf("%d\n",a[o][1]+a[1][1]+a[1][2]); }
下述程序的输出结果是( )。 #include<stdio.h> main { int a[2][3]={{1,2,3),{4,5,6}},(*p)[3],i; p=a ; for(i=0;i<3;i++) { if(i<2) p[1][i]=p[1][i]一1; else p[1][i]=1;) printf("%d\n",a[0][1]+a[1][1]+a[1][2]);}
有以下程序:#include main(){  char *s[6]={ABCD,EFGH,IJKL,MNOP,QRST,UVWX},**p; int i; p=s;  for(i=0;i<4;i++)printf(%s,p[i]); printf();}程序运行后的输出结果是(  )。
下述程序的输出结果是( )。 #include<stdio.h> main { char chE2][5]-{”1234”,”5678”},*p[2]; int i,j,s=0; for(i=0;i<2;i++) p[i]=ch[i]; for(i=0;i<2;i++) { s=p[i][j]一0; printf("%d",s);} }
有以下程序: #include <stdio.h> main( ) { int a=7; while(a--); print[("%d ",a); } 程序运行后的输出结果是( )。
广告位招租WX:84302438

免费的网站请分享给朋友吧