在调试程序是遇到一个问题:
#define CONST_A 17
uint16_t i;
i = CONST_A * 2; //17 *2 =34
单步调试时,发现 i=18,这到底是C语言规定不能表示为:CONST_A * 2 ,还是CCS编译器的问题?
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.
在调试程序是遇到一个问题:
#define CONST_A 17
uint16_t i;
i = CONST_A * 2; //17 *2 =34
单步调试时,发现 i=18,这到底是C语言规定不能表示为:CONST_A * 2 ,还是CCS编译器的问题?