Answer Posted / 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 |
Post New Answer View All Answers
Write the control statements in C language
What is new line escape sequence?
Can you write the algorithm for Queue?
Do string constants represent numerical values?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is infinite loop?
What are different types of variables in c?
What is meant by recursion?
The statement, int(*x[]) () what does in indicate?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Why flag is used in c?
What are the advantages of union?
What does %d do in c?
What are Macros? What are its advantages and disadvantages?
Do you know the difference between malloc() and calloc() function?