【发布时间】:2014-09-28 15:44:53
【问题描述】:
/* Beginning 2.0 */
#include<stdio.h>
main()
{
printf(" %d signifies the %c of %f",9,'rise',17.0);
return 0;
}
大家好
当我编译它时,编译器给出以下警告:
warning: multi-character character constant [-Wmultichar]|
并且输出只打印e 而不是rise。
C语言中不允许有多个字符吗?
如何打印整个单词 (rise)?
请帮帮我。
【问题讨论】:
-
切线:说
int main(),而不是main(),后者已经过时,被认为是草率。