Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when the number of possible virtual addresses are exceeded

Tags:

c++

c

Suppose I'm writing a program for an environment that has 32 bits for virtual spaces addresses (4294967296 addresses), what happens if create more than 4294967296 variables, effectively exceeding the number of possible addresses? Or all programs in an environment collectively use over 4294967296 addresses?

like image 855
Max Koretskyi Avatar asked Oct 27 '25 16:10

Max Koretskyi


1 Answers

It depends precisely how you try to do it. It may crash, it may return an error, it may throw an exception.

like image 84
David Schwartz Avatar answered Oct 29 '25 06:10

David Schwartz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!