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


Please Help Members By Posting Answers For Below Questions

What are structure members?

1095


Differentiate abs() function from fabs() function.

1022


Is multithreading possible in c?

1016


What does c mean before a date?

1184


How do I read the arrow keys? What about function keys?

1088


Are pointers really faster than arrays?

1034


Explain what are the __date__ and __time__ preprocessor commands?

1130


What language is c written?

1056


What is the use of structure padding in c?

1079


Is javascript based on c?

1073


Can you explain the four storage classes in C?

1126


What does stand for?

1090


Explain pointer. What are function pointers in C?

1086


Why is c used in embedded systems?

1124


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1925