Reinterpreting an object as an incompatible object is undefined. int and float are incompatible.
C Standard also specifically states that using an incorrect printf format specifier will result in undefined behavior.
Reinterpreting an object as an incompatible object is undefined. int and float are incompatible.
C Standard also specifically states that using an incorrect printf format specifier will result in undefined behavior.