What is the difference between "calloc" and "malloc"?

Answer Posted / shweta

calloc initializes memory with 0 while malloc doesn't
initializes.

Is This Answer Correct ?    25 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantage of using register variables?

832


What is atoi?

723


Can a constructor return a value?

843


Which is best c++ or java?

830


Explain shallow copy?

778






Discuss the possibilities related to the termination of a program before entering the mainq method?

723


What are the advantages of pointers?

793


If a header file is included twice by mistake in the program, will it give any error?

767


What is the role of C++ shorthand's?

950


What flag means?

697


What is the insertion operator and what does it do?

775


What does scope resolution operator do?

785


Write about an iterator class?

797


How is static data member similar to a global variable?

810


Explain overriding.

759