C语言指针和字符串 C语言字符串数组 C语言gets和puts函数 C语言指针和字符串 /* p_and_s.c -- pointers and strings */ #include <stdio.h> int main(void) { const char * mesg = "Don't be a fool!"; const char * copy; copy = mesg; printf("%s\n", copy); printf("mesg = %s; &mesg = %p; value = %p\n", mesg, &mesg, mesg); printf("copy = %s; © = %p; value = %p\n", copy, ©, copy); return 0; } C语言字符串数组 C语言gets和puts函数