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

A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1091


What is c variable?

1042


What is the use of #include in c?

1081


What is c language & why it is used?

1105


Write a program in c to replace any vowel in a string with z?

1125


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1950


Differentiate between functions getch() and getche().

1047


Differentiate Source Codes from Object Codes

1565


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3538


What is gets() function?

1120


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1074


What are the types of c language?

1027


Differentiate between full, complete & perfect binary trees.

1092


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1135


What are control structures? What are the different types?

1087