f(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
what is the output?
Answer Posted / prasad
it prints BYE on screen!!!
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is new line escape sequence?
What are the applications of c language?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
diff between exptected result and requirement?
What are runtime error?
Why is c used in embedded systems?
How many levels of pointers have?
What are the two forms of #include directive?
What are the standard predefined macros?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is bubble sort in c?
What is the difference between text and binary modes?
Write the syntax and purpose of a switch statement in C.
what is the diffrenet bettwen HTTP and internet protocol