C语言字符串实例 C语言字符串实例 C语言strlen函数 C语言字符串实例 /* praise1.c -- uses an assortment of strings */ #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; } C语言字符串实例 C语言strlen函数