WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?

Answer Posted / vini sharma

malloc()
allocates byte of memory and calloc() allocates block of
memory.

Is This Answer Correct ?    50 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

program to convert a integer to string in c language'

1976


what will be maximum number of comparisons when number of elements are given?

1404


How can I discover how many arguments a function was actually called with?

628


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1881


Write a program to check armstrong number in c?

630






What is the best way of making my program efficient?

560


What is #define size in c?

638


What is the process to generate random numbers in c programming language?

601


How can I remove the leading spaces from a string?

623


What is function and its example?

620


What is structure and union in c?

590


Is there any data type in c with variable size?

626


Why structure is used in c?

575


What does sizeof function do?

607


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

653