Why do I get the wrong values when I print an int using printf(\"%f\\n\", myNumber)?
int
printf(\"%f\\n\", myNumber)
I don\'t understand why it prints fine with %d>
%d>
For "normal" (non variadac functions with all the types specified) the compiler converts integer valued types to floating point types where needed.
That does not happen with variadac arguments, which are always passed "as is".