Please help me in understanding the following C Output:
#include int main() { float x = 4.0; printf(\"%f\\n\",x); printf(\"%d\\n\",x);
You're not printing y, you're printing x again.
y
x
As a side note, printf can't do conversions. So passing a float when a %d is expected is undefined behavior.
printf
%d