我想问下,我定义了两个变量ABCD,bcde,运行结果如下,我加括号的地方不一样时, bcde = (INT32)(ABCD << 10);//t错这个语句为何运行不对呢?
static INT16 ABCD;
static INT32 bcde;
ABCD=1024;
bcde = (INT32)(ABCD << 10);//t错
bcde = ((INT32)(ABCD))<< 10;//T对
bcde = ((INT32)ABCD)<< 10;//对
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.
我想问下,我定义了两个变量ABCD,bcde,运行结果如下,我加括号的地方不一样时, bcde = (INT32)(ABCD << 10);//t错这个语句为何运行不对呢?
static INT16 ABCD;
static INT32 bcde;
ABCD=1024;
bcde = (INT32)(ABCD << 10);//t错
bcde = ((INT32)(ABCD))<< 10;//T对
bcde = ((INT32)ABCD)<< 10;//对