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 LINKED LIST? How can you access the last element in a linked list?

1070


What is the purpose of realloc()?

1139


How many keywords (reserve words) are in c?

1142


What is string in c language?

1152


What is call by reference in functions?

1447


Explain what happens if you free a pointer twice?

1079


what is bit rate & baud rate? plz give wave forms

1978


Is c++ based on c?

1070


Why enum is used in c?

955


What is a 'null pointer assignment' error?

1214


a program that can input number of records and can view it again the record

1914


Explain what are global variables and explain how do you declare them?

1166


What does volatile do?

979


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1002


What are the key features in c programming language?

1072