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
Where are some collections of useful code fragments and examples?
Explain what is the difference between functions abs() and fabs()?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What is the correct declaration of main?
C language questions for civil engineering
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
How many bytes are occupied by near, far and huge pointers (dos)?
Is swift based on c?
What is a const pointer in c?
what type of questions arrive in interview over c programming?
What is a const pointer?
Explain what is meant by 'bit masking'?
What is the c language function prototype?
Can you return null in c?
What is hashing in c language?