#include<stdio.h> char *dd(void); int main() { printf("%s",*dd()); return 0; } char *dd(void) { char s[5]="kkjh"; return s; }
#include <stdio.h> char* test(char *source) { source[100]="这个准备返回给主函数"; return source; } int main(int argc, char* argv[]) { char h[100]={'\0'}; printf("%s\n",test(h)); return 0; }