void main(){int i1,i2;i1=f(8)/f(4);i2=f(4*5)/f(5*2);printf(%d,%d\n",i1,i2);}求详解,少打个#define f(x)(x*x)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 18:08:31
x)+LQMЬ+Q444MӰO0Ѵ4rLLA\S-#M"4
Ք<%Mg^_bb&>d*Դ̼T4
M
M"}Y
6v6+t]ӍSix:鲦';&`~5D5TUа@S]|g<ٱ
-'@~j}:^b{a71/.H̳0 ZE
void main(){int i1,i2;i1=f(8)/f(4);i2=f(4*5)/f(5*2);printf(%d,%d\n",i1,i2);}求详解,少打个#define f(x)(x*x)
void main(){int i1,i2;i1=f(8)/f(4);i2=f(4*5)/f(5*2);printf(%d,%d\n",i1,i2);}求详解,
少打个#define f(x)(x*x)
void main(){int i1,i2;i1=f(8)/f(4);i2=f(4*5)/f(5*2);printf(%d,%d\n",i1,i2);}求详解,少打个#define f(x)(x*x)
程序把宏展开后如下:
void main()
{
int i1,i2;
i1 = (8*8)/(4*4); //此结果为4
i2 = (4*5*4*5)/(5*2*5*2); //此结果为4
printf("%d,%d\n",i1,i2);
}
所以运行结果为:
4,4