Generally, UB is regarded as being something that has to be avoided, and the current C standard itself lists quite a few examples in appendix J.
However, there are c
No! Just because it compiles, runs and gives the output you hoped for does not make it correct.