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
How can I pad a string to a known length?
Are local variables initialized to zero by default in c?
What are logical errors and how does it differ from syntax errors?
Explain what is operator promotion?
What is the use of structure padding in c?
What is #error and use of it?
How can I implement a delay, or time a users response, with sub-second resolution?
What are multibyte characters?
What is void c?
What is dynamic dispatch in c++?
c language interview questions & answer
How can I do peek and poke in c?
What is the best way of making my program efficient?
Is array a primitive data type in c?
What does malloc () calloc () realloc () free () do?