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

difference between malloc and calloc

Answer Posted / namita

1-memory allocated by malloc contains garbage value.But
memory allocated by calloc is initialised to zero.

2-malloc takes only one argument which indicates the size
to be allocated.But calloc takes two arguments.First
argument indicates the number of blocks to be allocated
where as the second argument indicates the size of the
block.

Is This Answer Correct ?    35 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data types?

1096


What is the use of static variable in c?

1093


Difference between linking and loading?

1117


Tell me what is null pointer in c?

1086


What is pointer & why it is used?

1126


What are the 5 data types?

1146


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2135


Explain what is output redirection?

1203


Is boolean a datatype in c?

1074


What is printf () in c?

1096


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

1098


Explain 'bit masking'?

1095


What is a spanning Tree?

1599


Why is c called "mother" language?

1300


How can I use a preprocessorif expression to ?

1070