f(*p)
{
p=(char *)malloc(6);
p="hello";
return;
}
main()
{
char *p="bye";
f(p);
printf("%s",p);
}
what is the o/p?
Answer Posted / yellareddy
After removing the error, the output is "bye"
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what is wrong in this statement?
how do you programme Carrier Sense Multiple Access
What is dynamic variable in c?
What is memcpy() function?
What is the difference between fread buffer() and fwrite buffer()?
Is a house a mass structure?
What is an array in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What is the general form of #line preprocessor?
What is difference between class and structure?
What is the correct declaration of main?
code for replace tabs with equivalent number of blanks
what is reason of your company position's in india no. 1.
What does 3 mean in texting?
What is echo in c programming?