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 c token?
How can I do peek and poke in c?
Can a pointer be static?
What is the right type to use for boolean values in c?
How main function is called in c?
swap 2 numbers without using third variable?
What is the use of gets and puts?
The difference between printf and fprintf is ?
What is string function in c?
What are the primitive data types in c?
What is structure data type in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Can you write the algorithm for Queue?
How we can insert comments in a c program?
When should a far pointer be used?