[ 测试用例 ]
#include <stdio.h> int main() { char *p = "I love China. And I love Chinese food."; char str[100]; char *q = str; while(*q++ = *p++); printf("%s ", str); return 0; }
[ 测试结果 ]
【结论】
p
while