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

Compare array data type to pointer data type

1021


What is this infamous null pointer, anyway?

1050


What is a structural principle?

1163


What would be an example of a structure analogous to structure c?

996


Explain how do you list files in a directory?

1067


what are the different storage classes in c?

1178


What is the purpose of realloc()?

1139


What is variable and explain rules to declare variable in c?

1089


what do u mean by Direct access files? then can u explain about Direct Access Files?

2087


Where we use clrscr in c?

1134


What are nested functions in c?

1016


Is c is a low level language?

1136


If I have a char * variable pointing to the name of a function ..

1168


Combinations of fibanocci prime series

1609


What is merge sort in c?

1048