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 / vrushali

The answer is bye...

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the scope of static variables?

596


What are structural members?

564


What is a floating point in c?

594


What is the meaning of c in c language?

590


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2213






What is 02d in c?

630


What is pointer and structure in c?

559


What does struct node * mean?

591


Explain the difference between malloc() and calloc() function?

594


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

572


code for quick sort?

1611


Explain low-order bytes.

617


What is mean by data types in c?

545


What is structure padding in c?

618


Explain enumerated types in c language?

598