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
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is c variable?
What is the use of #include in c?
What is c language & why it is used?
Write a program in c to replace any vowel in a string with z?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Differentiate between functions getch() and getche().
Differentiate Source Codes from Object Codes
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is gets() function?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What are the types of c language?
Differentiate between full, complete & perfect binary trees.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What are control structures? What are the different types?