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

Answer Posted / vijay r15

malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.

Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I swap bytes?

638


what is bit rate & baud rate? plz give wave forms

1530


When should a type cast be used?

583


How can I delete a file?

638


Why c is called free form language?

581






What is integer constants?

630


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

756


Write a program to print all permutations of a given string.

654


What are structural members?

580


Explain the use of fflush() function?

633


What are the types of variables in c?

591


What is c programming structure?

631


What is the scope of static variable in c?

543


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1917


What is dynamic variable in c?

575