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(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
what is the output?

Answer Posted / hussain reddy

BYE

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of #pragma exit?

1172


What are the main characteristics of c language describe the structure of ac program?

1208


How does #define work?

1063


How do you print only part of a string?

1018


How can you convert integers to binary or hexadecimal?

1023


What are the similarities between c and c++?

1066


what is the significance of static storage class specifier?

2252


How do you define structure?

1041


Do you know the difference between exit() and _exit() function in c?

1059


How can I automatically locate a programs configuration files in the same directory as the executable?

1162


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

1117


What is extern variable in c with example?

989


What is the explanation for prototype function in c?

976


What is use of pointer?

1084


Explain the array representation of a binary tree in C.

1227