What's the difference between calloc() and malloc()?

Answer Posted / guest

calloc() takes two arguments, and initializes the allocated
memory to all-bits-0.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1856


How to Throw some light on the splay trees?

615


What are the types of functions in c?

565


please give me some tips for the placement in the TCS.

1627


What is spark map function?

578






What are reserved words with a programming language?

593


What is else if ladder?

603


What is function what are the types of function?

552


What are the 5 elements of structure?

557


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

599


What is the best way to comment out a section of code that contains comments?

772


What do you mean by c?

580


Is fortran still used in 2018?

585


What are header files in c?

610


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

625