size maximum allocated by calloc()

Answers were Sorted based on User's Feedback



size maximum allocated by calloc()..

Answer / vrushali

It is page size. almost 64k in linux OS.
After which we have to use realloc to get more memory.
In case, there is more memory available in dynamic memory
space, then realloc will give the pointer else NULL.

Is This Answer Correct ?    13 Yes 4 No

size maximum allocated by calloc()..

Answer / ravi.g

it depends on system memory and compiler

Is This Answer Correct ?    2 Yes 0 No

size maximum allocated by calloc()..

Answer / rohit

It is page size. almost 64k in linux OS.
After which we have to use realloc to get more memory.
In case, there is more memory available in dynamic memory
space, then realloc will give the pointer else NULL.

and also
it depends on system memory and compiler

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

WHAT IS PRE POSSESSORS?

6 Answers   TATA,


How can I change the size of the dynamically allocated array?

0 Answers  


What are valid signatures for the Main function?

0 Answers  


explain about storage of union elements.

2 Answers   ABC, Bosch,


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

0 Answers   TCS,






What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00int);

3 Answers   Bosch,


What does %p mean c?

0 Answers  


Explain argument and its types.

0 Answers  


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

0 Answers   Wilco,


there is two conditions , 1. while using for loop for printing 1 to 50 no's simulteneous 2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables who will take more time for compiling and execution? explain in details with reason?

1 Answers  


print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5

7 Answers   IBM,


What does printf does?

0 Answers  


Categories