By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,982 Members | 1,939 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,982 IT Pros & Developers. It's quick & easy.

c lang

P: 1
what is the difference between malloc and calloc() function
Jun 18 '07 #1
Share this Question
Share on Google+
2 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
what is the difference between malloc and calloc() function
Did you try doing Google or Wikipedia searches of those?

Also, please have a look at this.
Jun 18 '07 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
malloc() allocates memory. calloc() does the same except it fills the allocated memory with binary zeros.

This info should be in any book on C.
Jun 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.