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 / prasad

it prints BYE on screen!!!

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the hardest programming language?

1154


How can I send mail from within a c program?

1034


What does dm mean sexually?

1314


How do you write a program which produces its own source code as output?

1121


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1948


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

1000


What are the advantage of c language?

1054


Define and explain about ! Operator?

999


Write the control statements in C language

1208


What is const keyword in c?

1165


what are bit fields in c?

1721


What is malloc return c?

1028


What is hash table in c?

1025


What should malloc() do?

1172


What is dynamic variable in c?

1032