praisel.c

This commit is contained in:
wandoubaba517 2023-12-05 20:07:07 +08:00
parent d2a6e99010
commit 4776aee4f3

14
c04_string/praisel.c Normal file
View File

@ -0,0 +1,14 @@
/* praisel.c - 使用不同类型的字符串 */
#include <stdio.h>
#define PRAISE "You are an extraordinary being."
int main(void)
{
char name[40];
printf("What's your name?");
scanf("%s", name);
printf("Hello, %s. %s\n", name, PRAISE);
return 0;
}