f(*p)
{
p=(char *)malloc(6);
p="hello";
return;
}
main()
{
char *p="bye";
f(p);
printf("%s",p);
}
what is the o/p?
Answer Posted / hussain reddy
hello
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What is wrong with this initialization?
What is void pointers in c?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Why functions are used in c?
What is the use of getchar() function?
What is LINKED LIST? How can you access the last element in a linked list?
What are the types of unary operators?
What is the right type to use for boolean values in c?
What is keyword in c?
How do I use strcmp?
Can the sizeof operator be used to tell the size of an array passed to a function?
How do I determine whether a character is numeric, alphabetic, and so on?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Explain the difference between strcpy() and memcpy() function?