#include<stdio.h>void main(){float x,y,z;x=2.5;y=4.7;int a;a=7;z=x+a%3*(int)(x+y)%2/4;printf("%f\n",z);}比如這段代碼,在.cpp中可以運(yùn)行,但是把這段代碼復(fù)制到.c中就會(huì)出現(xiàn)錯(cuò)誤,這是為什么?
- 1 回答
- 0 關(guān)注
- 1247 瀏覽
添加回答
舉報(bào)
0/150
提交
取消