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 / madhureddy
the answer is bye
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is #line used for?
What is the newline escape sequence?
What are the types of c language?
How to create struct variables?
What is the difference between formatted&unformatted i/o functions?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Tell me the use of bit field in c language?
What is a #include preprocessor?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Which is the best website to learn c programming?
How many parameters should a function have?
What does typeof return in c?
What's the total generic pointer type?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Can we assign string to char pointer?