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 / subbu
after correction of error, the output will be hello
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Write a code to remove duplicates in a string.
Describe the order of precedence with regards to operators in C.
What is the purpose of void in c?
Why does this code crash?
How can I get back to the interactive keyboard if stdin is redirected?
What does *p++ do? What does it point to?
How do you list files in a directory?
What is the use of the function in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
If you know then define #pragma?
Explain threaded binary trees?
What is a struct c#?
#include
write a c program in such a way that if we enter the today date the output should be next day's date.
How can a number be converted to a string?