what does " calloc" do?
Answers were Sorted based on User's Feedback
Answer / shubham bajpai
CALLOC FUNCTION DYNAMICALLY ALLOCATES MEMORY IN FORM OF BLOCKS(CONSECUTIVE) & INITIALIZES ALL BLOCKS TO 0.
CALLOC FUNCTION REQUIRES 2 ARGUMENTS IN ITS CALLING.
EXAMPLE:
PTR=(INT *)CALLOC(SIZEOF(INT),N);
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / shruti
the calloc function will allocate memory , and also
initialise the variables to a particular value..
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / debu
This function allocates multiple blocks of memory of same
size, initializes all locations to zero and returns a
pointer to the first byte of allocated space.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rani
a memory allocation for the multiple blocks i.e array of
blocks and intialising the first block to zero.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / srinivas
Allocate memory where ever it is free and that to it is in
terms of block and initialises that block to zero.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / anjana devi
calloc will reallocate the memeory created by malloc
| Is This Answer Correct ? | 2 Yes | 12 No |
What is static identifier?
What is the difference between exit() and _exit()?
What is c mainly used for?
Determine if a number is a power of 2 at O(1).
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
What is static function in c?
How many loops are there in c?
Explain how can I manipulate strings of multibyte characters?
we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?
How can I use a preprocessorif expression to ?
what is the different bitween abap and abap-hr?
Which header file is used for clrscr?