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...

What's wrong with "char *p = malloc(10);" ?

Answer Posted / splurgeop

malloc return an adress to the free memory..so we shud
store the adress i.e.
the above should be

char p=malloc(10);

Is This Answer Correct ?    1 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a pointer variable declared?

1105


c program to compute AREA under integral

2414


What is the most efficient way to count the number of bits which are set in an integer?

1069


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1218


Combinations of fibanocci prime series

1621


Why is main function so important?

1113


Explain how do you print only part of a string?

1225


What is static identifier?

1230


How does pointer work in c?

1132


What is fflush() function?

1141


Explain the difference between exit() and _exit() function?

1175


Write a program to reverse a linked list in c.

1141


What is equivalent to ++i+++j?

1101


write a proram to reverse the string using switch case?

2959


Difference between exit() and _exit() function?

1146