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

A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1722


What is file in c language?

1008


What is pragma in c?

1219


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1003


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1080


Give differences between - new and malloc() , delete and free() ?

1100


What is pivot in c?

1030


What are the advantage of c language?

1054


int far *near * p; means

3560


What is double pointer in c?

1042


Explain what are the advantages and disadvantages of a heap?

1093


Explain what is the use of a semicolon (;) at the end of every program statement?

1229


What is an lvalue in c?

1127


What does the && operator do in a program code?

1236


Explain b+ tree?

1070