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

Answer Posted / karthik

Malloc() is used to allocate a block of memory

Calloc() is used to allocate a block of memory and initialize it.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to know whether the input number is an armstrong number.

660


What is the benefit of using const for declaring constants?

575


What is include directive in c?

631


What is volatile, register definition in C

678


Can variables be declared anywhere in c?

608






Can you please explain the scope of static variables?

590


the question is that what you have been doing all these periods (one year gap)

1610


How do you determine a file’s attributes?

589


What are preprocessor directives?

662


Explain how do you override a defined macro?

573


Is null equal to 0 in sql?

638


How will you find a duplicate number in a array without negating the nos ?

1632


What is the use of pragma in embedded c?

583


Write a program to print numbers from 1 to 100 without using loop in c?

623


What are enumerated types?

644