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

Answer Posted / edwin

malloc - create the memory space

calloc-calculate the memory space

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is upcasting in C++?

916


Can you sort a set c++?

748


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2270


What is the difference between set and map in c++?

864


How are Structure passing and returning implemented by the compiler?

828


What is data abstraction? How is it different from data encapsulation?

731


Can we make copy constructor private in c++?

804


What is std :: flush?

798


how to connect with oracle 9i with server in socket program in c/c++

2071


What do you mean by volatile and mutable keywords used in c++?

756


Explain the auto storage classes in c++.

821


What is the benefit of encapsulation?

818


How do you invoke a base member function from a derived class in which you’ve overridden that function?

788


What is the C-style character string?

802


How do I start a c++ project?

779