stackyFACTS
Technology

C++ treats infinite loops without side effects as undefined behavior

HERE’S THE INTERESTING PART

If your loop doesn't have an exit condition, the compiler legally has the right to completely delete it. C++ considers infinite loops without side effects as 'undefined behavior', meaning optimization engines will literally just erase your code.

C++ treats infinite loops without side effects as undefined behavior
STACKY / Technology
One discovery leads to another.

Keep exploring facts in this topic.

Technology →
STACKY FOR IPHONE

A bigger world.
One discovery
at a time.

Keep discovering with Stacky. Interesting facts in an app that is always within reach.

Download on the App Store
ONE MORE DISCOVERY?

Keep exploring

All in this topic →
StackyMore discoveries in the app
Download on the App Store