This program provokes undefined behavior since it does not follow the rules of C. You should give printf
one argument per format specifier after the format string.
On common C implementations, it prints whatever happens to be on the stack after the pointer to "%d"
, interpreted as an integer. On others, it may send demons flying out of your nose.
4
solved Please explain this ambiguity in C