题目内容

下面程序的输出结果是。#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));}

下面程序的输出结果是 。#includeint fun(int x){int p;if(x= =0||x= =1) return(3);p=x-fun(x-2);return p;}main( ){printf("%d\n",fun(9)); }

下面程序的输出结果是。#includefun(intx){if(x/2>0)fun(x/2);printf("%d",x);}main(){fun(6);printf("\n");}

答案查题题库