• 2022-06-09
    阅读程序,写结果:#include <stdio.h>int fun1(int x);void fun2(int x);void main(){int x=1;x=fun1(x);printf("%d\n",x);}int fun1(int x){x++;fun2(x);return x;}void fun2(int x){x++;}
  • 2

    内容

    • 0

      以下程序的运行结果是( )。#include <;stdio.h>;void fun(int x){ if(x/2>;0) fun(x/2-2);printf("%d ",x);}int main(){fun(20);return 0;}

    • 1

      #include <;stdio.h>;int fun(int x);int main(){ printf("%d",fun(4)); return 0;}int fun(int x){ if(x==1)return 3; return x*x+fun(x-1);}程序输出结果为( )

    • 2

      有以下程序 #include <stdio.h> void fun(int x) {if(x/2>1) fun(x/2); printf("%d",x); } main() {fun(7); printf(" ");} 程序运行后的输出结果是:

    • 3

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

    • 4

      下列程序段的输出结果是 include void fun(int * X,int * y) {cout < < * X < < 下列程序段的输出结果是 #include<iostream.h> void fun(int * X,int * y) { cout < < * X < < * y; * X=3; * y=4; } void main( ) { int x=1,y=2; fun(&y,&x); cout < < X < < y < < end1; } A.2143 B.1212 C.1234 D.2112