char *a(void){ char p[]="hello"; return p; } void Test(void ){ char *str=NULL; str=a(); printf(str); }