WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / md ajij
1.malloc() allocate one block of space in memory , argument
of the malloc is the size of the block.
where as calloc() allocate multiple blocks in the memory
,argument of the malloc() is the size of a block and number
of blocks.
2. malloc() takes garbage value at the initial time where
initial value of calloc() is zero.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why isnt there a numbered, multi-level break statement to break out
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What are the different properties of variable number of arguments?
What is static function in c?
How does normalization of huge pointer works?
Why c is known as a mother language?
What is volatile variable how do you declare it?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is chain pointer in c?
What is C language ?
What is a method in c?
What is pointer & why it is used?
What is the use of parallelize in spark?
How can I sort more data than will fit in memory?