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

How to find a missed value, if you want to store 100 values in a 99 sized array?

1359


Describe the order of precedence with regards to operators in C.

1000


What are the __date__ and __time__ preprocessor commands?

1035


Write a program to reverse a given number in c language?

1049


How can I get back to the interactive keyboard if stdin is redirected?

1133


What is the difference between strcpy() and memcpy() function in c programming?

1026


How can I read/write structures from/to data files?

922


Write a program to use switch statement.

1076


Is using exit() the same as using return?

1247


What is line in c preprocessor?

995


Does * p ++ increment p or what it points to?

1054


What is pointer to pointer in c?

1056


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1015


What is a string?

1051


What is memcpy() function?

1046