芯片:C6672 仿真器:XDS560V2PLUS 环境:CCS7.3 编译器:7.4.24
定义变量如下:
赋初值0
运算如下:
结果:a=2;b=1;c=2;
提问:
为什么运算b的时候 1+1=1了 而像运算c那样 强制转换一下 结果又对了?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
芯片:C6672 仿真器:XDS560V2PLUS 环境:CCS7.3 编译器:7.4.24
定义变量如下:
赋初值0
运算如下:
结果:a=2;b=1;c=2;
提问:
为什么运算b的时候 1+1=1了 而像运算c那样 强制转换一下 结果又对了?