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
Why c is called top down?
What is the purpose of void in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Why does notstrcat(string, "!");Work?
What is the meaning of ?
Is return a keyword in c?
What is the process to generate random numbers in c programming language?
How can you find the day of the week given the date?
What is #include stdio h?
What are shell structures used for?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What is the maximum length of an identifier?
find out largest elemant of diagonalmatrix
What is logical error?
Differentiate between functions getch() and getche().