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 the hardest programming language?
How can I send mail from within a c program?
What does dm mean sexually?
How do you write a program which produces its own source code as output?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What would be an example of a structure analogous to structure c?
What are the advantage of c language?
Define and explain about ! Operator?
Write the control statements in C language
What is const keyword in c?
what are bit fields in c?
What is malloc return c?
What is hash table in c?
What should malloc() do?
What is dynamic variable in c?