char* f()
return "hello:";
void main()
{char *str=f();
}

Submitted by: Administrator
str will be a pointer to "hello:"

so on printing str will output hello:
Submitted by: Administrator

Read Online C C++ Errors Job Interview Questions And Answers