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 is malloc and calloc?
How can I convert a number to a string?
all c language question
provide an example of the Group by clause, when would you use this clause
Do you know the use of fflush() function?
If fflush wont work, what can I use to flush input?
using only #include
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is #include cctype?
What do the functions atoi(), itoa() and gcvt() do?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What is volatile variable in c with example?
Why c is called a middle level language?
What is a spanning Tree?
What is the use of header?