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 IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?

Answer Posted / nazia wasim

malloc and calloc both are used to allocate
memory dynamically but the difference is
malloc allocates single block of memory and
calloc allocates multiple block of memory as
per the requirement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain pointers in c programming?

1110


When should the volatile modifier be used?

1170


about c language

2006


Why is structure padding done in c?

1129


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1206


What are preprocessor directives in c?

1094


Why can’t constant values be used to define an array’s initial size?

1373


Are bit fields portable?

1155


What is a constant and types of constants in c?

1114


can we change the default calling convention in c if yes than how.........?

2531


Explain about block scope in c?

1091


When c language was developed?

1058


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1026


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2644


What is the difference between local variable and global variable in c?

1227