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
What is typeof in c?
Define Array of pointers.
How can I convert a number to a string?
what is recursion in C
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Describe wild pointers in c?
Can you please compare array with pointer?
What is a class c rental property?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What are structure types in C?
Write a program to generate random numbers in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
is it possible to create your own header files?