top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How much memory calloc and malloc can allocate ?

+3 votes
190 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...