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


Please Help Members By Posting Answers For Below Questions

Explain what is wrong in this statement?

626


how do you programme Carrier Sense Multiple Access

1510


What is dynamic variable in c?

557


What is memcpy() function?

615


What is the difference between fread buffer() and fwrite buffer()?

665






Is a house a mass structure?

635


What is an array in c?

584


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

717


What is the general form of #line preprocessor?

577


What is difference between class and structure?

562


What is the correct declaration of main?

667


code for replace tabs with equivalent number of blanks

1629


what is reason of your company position's in india no. 1.

1770


What does 3 mean in texting?

604


What is echo in c programming?

547