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

Why pointers are used in c?

957


What is cohesion and coupling in c?

990


Explain how can you determine the size of an allocated portion of memory?

1056


Explain about block scope in c?

1045


Write the syntax and purpose of a switch statement in C.

1056


Explain threaded binary trees?

1114


How do we make a global variable accessible across files? Explain the extern keyword?

1838


What is struct node in c?

1028


Explain the meaning of keyword 'extern' in a function declaration.

1125


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2088


What is function what are the types of function?

955


What is null pointer constant?

1080


Explain null pointer.

1052


write a c program in such a way that if we enter the today date the output should be next day's date.

2149


What is use of pointer?

1021