#include #include #include char * func(){ char * d; strcpy(d, "abcdefg"); return d; } int main(int argc, char * argrv[]){ char *buf; buf = func(); printf ("%s\n", buf); return 0; }