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()?

Answer Posted / hr@tgksolutions.com

 malloc(): Allocates a single block of memory without initializing it.
 calloc(): Allocates multiple blocks of memory and initializes them to zero.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of pointers used in c language?

1050


What is meant by inheritance?

1090


What are structure types in C?

1105


Explain how does flowchart help in writing a program?

1119


main() { printf("hello"); fork(); }

1201


Describe dynamic data structure in c programming language?

1097


How can I use a preprocessorif expression to ?

1065


what are enumerations in C

1163


What are the different types of C instructions?

1318


Explain the difference between call by value and call by reference in c language?

1115


What is volatile variable in c?

1095


How can I recover the file name given an open stream or file descriptor?

1082


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1123


Is it acceptable to declare/define a variable in a c header?

1127


What is difference between stdio h and conio h?

1383