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

after correction of error, the output will be hello

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

With the help of using classes, write a program to add two numbers.

1038


What is the default value of local and global variables in c?

1041


What is a lvalue

1081


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

1142


What does %c do in c?

990


How many levels of indirection in pointers can you have in a single declaration?

1088


Why cant I open a file by its explicit path?

1033


How do you determine a file’s attributes?

1079


What type of function is main ()?

1039


what does static variable mean?

1102


What are the advantages and disadvantages of c language?

1013


Explain what is the difference between null and nul?

1151


What does the c in ctime mean?

1090


Differentiate between a for loop and a while loop? What are it uses?

1177


Explain what are reserved words?

1103