[单选题]

以下程序的输出结果是

#include <stdio.h>

void prt (int *x, int*y, int*z)

{printf("%d,%d,%d/n",++*x,++*y,*(z++));}

main()

{int a=10,b=40,c=20;

prt (&a,&b,&c);prt (&a,&b,&c);}

A.11,42, 31 12,22,41

B.11,41,20 12,42,20

C.11,21,40 11,21,21

D.11,41,21 12,42,22

参考答案与解析:

相关试题

以下程序的输出结果是( )。#include<stdio.h>void main

[单选题]以下程序的输出结果是( )。#include<stdio.h>void main(){int a,b,d=241; a=d/100%9; b=(-1)&&(-1); printf("%d,%d/n",a,b);}A.6,1 B.2,1 C.6,0 D.2,0

  • 查看答案
  • 下述程序的输出结果是 #include<stdio.h> void main()

    [单选题]下述程序的输出结果是#include<stdio.h>void main(){ int a[5]={2,4,6,8,10};int *p=a,**q=&p;printf("%d,",*(p++));printf("%d",**q); }A.4,4B.2,2C.4,5D.2,4

  • 查看答案
  • 下述程序的输出结果是 #include<stdio.h> void main()

    [单选题]下述程序的输出结果是#include<stdio.h>void main(){ int a[5]={2,4,6,8,10};int *p=a,**q=&p;printf("%d,",*(p++));printf("%d",**q); }A.4,4B.2,2C.4,5D.2,4

  • 查看答案
  • 以下程序的输出结果是_[13]_______ #include<stdio.h>

    [主观题]以下程序的输出结果是_[13]_______#include <stdio.h>#include <string.h>char *fun(char *t){ char *p=t;return(p+strlen(t)/2);}main(){ char *str="abcdefgh";str=fun(str);puts(str);}

  • 查看答案
  • 以下程序的输出结果是_[19]_______ #include<stdio.h>

    [试题]以下程序的输出结果是_[19]_______#include <stdio.h>#define M 5#define N M+Mmain(){ int k;k=N*N*5; printf("%d/n",k);}

  • 查看答案
  • 以下程序的输出结果是( 10 )。#include .<stdio.h>Main

    [试题]以下程序的输出结果是( 10 )。#include .<stdio.h>Main( ){ char a,b;for( a=0; a<20; a+=7) { b=a% 10; putchar(b+'0'); }}

  • 查看答案
  • 以下程序的输出结果是( 7 )。#include <stdio.h>main(

    [试题]以下程序的输出结果是( 7 )。#include <stdio.h>main( ){ int a=37;a+=a%=9; printf(”%d/n”, a),}

  • 查看答案
  • 以下程序的输出结果是( 14 )#include <stdio.h> #incl

    [试题]以下程序的输出结果是( 14 )#include <stdio.h>#include <stdio.h>#include <stdlib.h>#include <string.h>main( ){ char *p,*q,*r,p=q=r=(char*)malioc( sizeof(char)*20);strcpy(p,"attaboy,welcome!");printf(”%c%c%c/n”,p[ 11 ], q[ 3 ],r[ 4 ]);fre

  • 查看答案
  • 以下程序的输出结果是 ( 11 )。#include <stdio.h>main

    [试题]以下程序的输出结果是 ( 11 )。#include <stdio.h>main( ){ char *ch[4]={"red',"green","blue"};int i=0;while( ch[i] ){ putchar( ch[i][0]); i++;)}

  • 查看答案
  • 以下程序的输出结果是#include <stdio.h>main(){ int

    [主观题]以下程序的输出结果是#include <stdio.h>main(){ int k=4,s=0; do{ if((k%3)==0) continue; s+=k;k++; }while(k>10); printf("s=%d/n",s);}

  • 查看答案