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 / hussain reddy
hello
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why functions are used in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is data types?
Can include files be nested? How many levels deep can include files be nested?
write a program for the normal snake games find in most of the mobiles.
What is pointer and structure in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What does malloc () calloc () realloc () free () do?
What are run-time errors?
What does s c mean in text?
Is c++ based on c?
Why is it important to memset a variable, immediately after allocating memory to it ?
When should the volatile modifier be used?
what is use of malloc and calloc?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.