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 / hussain reddy
BYE
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the use of #pragma exit?
What are the main characteristics of c language describe the structure of ac program?
How does #define work?
How do you print only part of a string?
How can you convert integers to binary or hexadecimal?
What are the similarities between c and c++?
what is the significance of static storage class specifier?
How do you define structure?
Do you know the difference between exit() and _exit() function in c?
How can I automatically locate a programs configuration files in the same directory as the executable?
Does * p ++ increment p or what it points to?
What is extern variable in c with example?
What is the explanation for prototype function in c?
What is use of pointer?
Explain the array representation of a binary tree in C.