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 / vignesh1988i
bye
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Sir i need notes for structure,functions,pointers in c language can you help me please
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Write a program to print fibonacci series without using recursion?
What is volatile variable how do you declare it?
What is bubble sort in c?
What are data types in c language?
Do you know the difference between malloc() and calloc() function?
What is the c value paradox and how is it explained?
What is the process to generate random numbers in c programming language?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How is a pointer variable declared?
How to draw the flowchart for structure programs?
What is difference between structure and union in c?
Explain setjmp()?
What is the difference between %d and %i?