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.

sprintf函数并没有将数据存入数组,是CCS6.0要配置什么?

  1. char a ='a';
  2. char buf[80];
  3. sprintf(buf,"The ASCII code of a is %d.", a);
  4. printf("%s", buf);

printf是能输出的,但加上sprintf就不能输出了