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 |
write a c program to find the probability of random numbers between 1-1000
Write a C program to count the number of email on text
Why is c called a mid-level programming language?
void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }
List some of the dynamic data structures in C?
Why ordinary variable store only one value
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Explain pointers in c programming?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Differentiate between functions getch() and getche().
What is malloc and calloc?
When should I declare a function?