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
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is file in c language?
What is pragma in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Give differences between - new and malloc() , delete and free() ?
What is pivot in c?
What are the advantage of c language?
int far *near * p; means
What is double pointer in c?
Explain what are the advantages and disadvantages of a heap?
Explain what is the use of a semicolon (;) at the end of every program statement?
What is an lvalue in c?
What does the && operator do in a program code?
Explain b+ tree?