In many discussions about undefined behavior (UB), the point of view has been put forward that in the mere presence in a program of any construct that has UB in a p
In the context of a safety-critical embedded system, the posted code would be considered defective: