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 / vignesh1988i
bye
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is a void pointer? When is a void pointer used?
Explain how can I right-justify a string?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Who invented b language?
Can the size of an array be declared at runtime?
What is a built-in function in C?
What is the difference between single charater constant and string constant?
When is the “void” keyword used in a function?
When was c language developed?
Ow can I insert or delete a line (or record) in the middle of a file?
What is a string?
explain what are pointers?
Describe the order of precedence with regards to operators in C.
Can I initialize unions?
What is c system32 taskhostw exe?