以下程序的输出结果是()。#includeint fun(int a,int b){ if(b= =0) return a;else return(fun(- -a,- -b));}main( ){ printf("%d\n",fun(4,2));}
查看答案
下面程序的输出结果是 。#include long fun (long s){long t,sl=10;t = s % 10;while (s > 0){s = s/100;t = s%10*sl + t;sl = sl * 10;}return t;}main( ){long s=7654321,t;t=fun(s);printf("t=%ld\n", t);}
下面程序的输出结果是。#includevoid t(int x,int y,int cp,int dp){ cp=x*x+y*y;dp=x*x-y*y;}main( ){ int a=4,b=3,c=5,d=6;t(a,b,c,d);printf("%d%d \n",c,d);}
下面程序的输出结果是。#includeintfunc(inta,intb){intm=0,i=2;i+=m+1;m=i+a+b;returnm;}main(){intk=4,m=1,p;p=func(k,m);printf("%d,",p);p=func(k,m);printf("%d\n",p);}
下面程序的输出结果是 。#includeunsigned fun(unsigned w){unsigned t,s=0,s1=1,p=0;t=w;while(t>10){ p=t%10;s=s+p*s1;s1=s1*10;t=t/10;}return s;}main( ){ unsigned x=5923,y;y=fun(x);printf("y=%u\n", fun(x));}