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

why do we use # in c-language?

1 Answers  


we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?

4 Answers   HP, Wipro,


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1 Answers  


Is c is a procedural language?

1 Answers  


What is the difference b/w Structure & Union?

3 Answers  


write a program to find lcm and hcf of two numbers??

1 Answers  


how to construct a simulator keeping the logical boolean gates in c

1 Answers  


#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?

4 Answers   Ramco,


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


how to find the size of the data type like int,float without using the sizeof operator?

13 Answers  


How can I handle floating-point exceptions gracefully?

1 Answers  


Can we change the value of constant variable in c?

1 Answers  


Categories