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 / fazlur rahaman naik
actually the above programme produces an error.because u've
to mention which type of pointer it is at fuction f(*p).
i.e f(char *p).
if u correct this error.then the out put will be
bye
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are structure members?
Differentiate abs() function from fabs() function.
Is multithreading possible in c?
What does c mean before a date?
How do I read the arrow keys? What about function keys?
Are pointers really faster than arrays?
Explain what are the __date__ and __time__ preprocessor commands?
What language is c written?
What is the use of structure padding in c?
Is javascript based on c?
Can you explain the four storage classes in C?
What does stand for?
Explain pointer. What are function pointers in C?
Why is c used in embedded systems?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..