Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / yellareddy

After removing the error, the output is "bye"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typedef?

1324


Explain the use of #pragma exit?

1107


What is the collection of communication lines and routers called?

1051


What is the advantage of using #define to declare a constant?

1036


Write a program to reverse a given number in c?

978


What is switch in c?

1042


Is null valid for pointers to functions?

1102


Explain how do you search data in a data file using random access method?

1068


How pointer is different from array?

1015


Define VARIABLE?

1102


How to explain the final year project as a fresher please answer with sample project

906


Why can't I perform arithmetic on a void* pointer?

1042


How can I invoke another program or command and trap its output?

1045


Write a program to implement queue.

1065


Why can’t we compare structures?

1225