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.

请问何种情况下需要分配内存 何种情况下不需要分配?

您好:

 

我是CCS 和C6713的初学者。我刚开始运行了一个example project: helloworld 也就是在console输出hello world. 在c code中通过写一个printf实现

 

我想问如果我做一个简单的加法: sum=a+b 想把sum的值显示出来 要用到变量

那么是不是只要写含有变量的程序,都必须要写cmd file分配dsk中的内存空间?

 

我发现helloworld这个project没有写cmd 应该是这里不涉及任何变量吧?

 

谢谢