VS2013软件下的printf输出问题

ALEXDDY ALEXDDY 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
//praise1.c -- 使用不同类型的字符串
#include<stdio.h>
#include<stdlib.h>
#define PRAISE "You are an extraordinary being."
int main(void)
{
char name[40];

printf("What's your name? ");
scanf_s("%s", name);
printf("Hello, %s. %s\n", name, PRAISE);

system("pause");
return 0;
}

运行后程序为
What's your name? alex
Hello, . You are an extraordinary being.


你好,请问一下这段程序的输出为什么不是

What's your name? alex
Hello, alex, You are an extraordinary being.
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
ALEXDDY
C语言 70,040 成员 243,237 内容