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.

变量赋值问题



用的是C6670开发板,最近在测试程序的时候发现好多bug,代码如图,

在执行完后,temp_num1和temp_num的值不一样!其中temp_num变量是定义在共享内存上,在外部文件中声明的,刷缓存也不管用。

同样的问题出现在函数形参赋值上,得到的值与赋的值完全不一样,而且看不出有什么联系。

求专家解答~