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
the problem is... inside printf. the following happens
printf
if ("%f") { float *p = (float*) &a; output *p; //err because binary representation is different for float and int }