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 pointer is different from array?
what are the different storage classes in c?
What are runtime error?
What is break statement?
What is the use of sizeof?
Where we use clrscr in c?
What is difference between && and & in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Which is the best website to learn c programming?
What are loops in c?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Explain what is wrong with this program statement? Void = 10;
What is the purpose of the statement: strcat (S2, S1)?
What is variable and explain rules to declare variable in c?
What is the concatenation operator?