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
What is meant by keywords in c?
Why is c so powerful?
how can use subset in c program and give more example
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
How does pointer work in c?
What is the total generic pointer type?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Why does this code crash?
What is this infamous null pointer, anyway?
What is return type in c?
Which node is more powerful and can handle local information processing or graphics processing?
what is ur strangth & weekness
How can a program be made to print the name of a source file where an error occurs?
What is pointer to pointer in c with example?
What does the c preprocessor do?