WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / monalisa dhal samanta
malloc() is a allocated 1 unit data type.it is a one argument
function .malloc allocate bytes of memory .
calloc() is a allocated sizeof data type .it is a two
argument .
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
if p is a string contained in a string?
Is exit(status) truly equivalent to returning the same status from main?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Why does this code crash?
How many keywords (reserve words) are in c?
What are the advantages of using linked list for tree construction?
Can we use any name in place of argv and argc as command line arguments?
Explain About fork()?
What does %d do in c?
Write a program to identify if a given binary tree is balanced or not.
what is bit rate & baud rate? plz give wave forms
How many parameters should a function have?
what are the advantages of a macro over a function?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)