top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How much memory calloc and malloc can allocate ?

+3 votes
725 views
How much memory calloc and malloc can allocate ?
posted Oct 18, 2013 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
By default on most of the system , Virtual Memory is enabled and malloc/calloc can consume the available space on the HD at Max.

1 Answer

+1 vote

You can allocate as much bytes as type size_t has different values. So in 32-bit application it is 4GB in 64-bit 16 I don't even know how to call that size

All in all you can allocate all memory of machine.

answer Oct 20, 2013 by Atul Mishra
Similar Questions
...