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

What are the different properties of variable number of arguments?

671


What are conditional operators in C?

632


Differentiate Source Codes from Object Codes

835


Is c compiled or interpreted?

682


Is python a c language?

561






Are pointers integers in c?

619


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

659


What is the hardest programming language?

685


Why we write conio h in c?

577


Explain how can I read and write comma-delimited text?

669


Explain the use of bit fieild.

721


What does %d do in c?

554


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2066


What is a header file?

644


explain what is a newline escape sequence?

696