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
What is the scope of local variable in c?
Explain what is the difference between functions abs() and fabs()?
What are categories used for in c?
Why isn't it being handled properly?
can we have joblib in a proc ?
Can you please compare array with pointer?
what type of questions arrive in interview over c programming?
What is the difference between text and binary modes?
Do you have any idea how to compare array with pointer in c?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What are the usage of pointer in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What are 3 types of structures?