An example of undefined behavior caused by absence of return
▻https://hownot2code.com/2022/03/09/an-example-of-undefined-behavior-caused-by-absence-of-return
This article contains a very interesting example. The absence of the return statement in a value-returning function leads to undefined behavior. It’s a perfect example of how wrong code can crash one day, even though it could work for many years. We inspect an error pattern that the SEI CERT C++ coding standard describes as MSC52-CPP. … Continue reading An example of undefined behavior caused by absence of return
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G