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 / yellareddy
After removing the error, the output is "bye"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why pointers are used in c?
What is cohesion and coupling in c?
Explain how can you determine the size of an allocated portion of memory?
Explain about block scope in c?
Write the syntax and purpose of a switch statement in C.
Explain threaded binary trees?
How do we make a global variable accessible across files? Explain the extern keyword?
What is struct node in c?
Explain the meaning of keyword 'extern' in a function declaration.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is function what are the types of function?
What is null pointer constant?
Explain null pointer.
write a c program in such a way that if we enter the today date the output should be next day's date.
What is use of pointer?