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
Is register a keyword in c?
What is the difference between call by value and call by reference in c?
write a program to print data of 5 five students with structures?
What is wrong with this declaration?
Explain the properties of union.
What is wrong with this program statement? void = 10;
What is the acronym for ansi?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Differentiate between #include<...> and #include '...'
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
How do I copy files?
What is c++ used for today?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is the difference between null pointer and wild pointer?
What is calloc malloc realloc in c?