I was messing with malloc calls, and I wondered how much memory could my OS give me. I tried:
int main() {
char *String = 0;
String = malloc (100000000000000); // This is 10^14
if (String)
printf ("Alloc success !\n");
else
printf ("Alloc failed !\n");
return 0;
}
And... It worked. 10^14 is roughly 18 Terabytes. Is it even possible for a laptop to have so much memory? If that's not possible how can this be explained?