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
What are the scope of static variables?
What are structural members?
What is a floating point in c?
What is the meaning of c in c language?
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
What is 02d in c?
What is pointer and structure in c?
What does struct node * mean?
Explain the difference between malloc() and calloc() function?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
code for quick sort?
Explain low-order bytes.
What is mean by data types in c?
What is structure padding in c?
Explain enumerated types in c language?