C C++ Errors Question:
Download Questions PDF

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

Answer:

str will be a pointer to "hello:"

so on printing str will output hello:

Download C C++ Errors Interview Questions And Answers PDF

Previous QuestionNext Question
When i use cout or cin call & then either << or >> .....it shows
declaration syntax error...what should i do?
cout<<"anything";
int a;
cin>>a;
return 0;?
What is run time error?