看一段代码:
float fRrow = 0.0;
int z = 1;
#define DIV8(n) ((n)>>3)
fRrow = (float)(1)/(float)(DIV8(z));
if(fRrow >1)
fRrow = 0.0;
fRrow = (float)(1)/(float)(z/8.0);
你认为 fRrow = (float)(1)/(float)(DIV8(z));的值是什么?
而在fRrow = (float)(1)/(float)(z/8.0);之前fRrow的值又是什么?
然后在fRrow = (float)(1)/(float)(z/8.0);之后,fRrow的值又是什么?
再来一个:
int z1 = 0;
fRrow = (float)(1/z1);
这样写fRrow会是什么值?