How much maximum can you allocate in a single call to malloc()?

Showing Answers 1 - 3 of 3 Answers

akhilesh

  • Feb 22nd, 2007
 

64 kb

  Was this answer useful?  Yes

jeet

  • Jul 26th, 2007
 

Why we can allocate only 64kb in single call.

  Was this answer useful?  Yes

zdmytriv

  • Jan 26th, 2008
 

The largest possible memory block malloc can allocate depends on the host system, particularly the size of physical memory and the operating system implementation. Theoretically, the largest number should be the maximum value that can be held in a size_t type, which is an implementation-dependent unsigned integer representing the size of an area of memory. The maximum value is (size_t) −1, or the constant SIZE_MAX in the C99 standard.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions