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

Explain how many levels deep can include files be nested?

1124


Why cant I open a file by its explicit path?

1086


What does the message "automatic aggregate intialization is an ansi feature" mean?

1245


What is the difference between #include

and #include “header file”?

1091


What are control structures? What are the different types?

1145


Explain indirection?

1184


How is actual parameter different from the formal parameter?

1065


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3310


What are local variables c?

1071


What is meant by int main ()?

1257


Using which language Test cases are added in .ptu file of RTRT unit testing???

4355


show how link list can be used to repersent the following polynomial i) 5x+2

2401


What is dynamic variable in c?

1099


What is function prototype in c with example?

1165


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

2022