What happens is undefined behavior. The call to printf doesn't have enough arguments.
Refer to man page for printf. The format string has two format specifies: "%d" and "%*d"; the first expects one argument and the second expects two arguments. Thus, three arguments should follow the format string but you only have two.
Comment