I ran some code in C, and I ran into an interesting occurance when printing integers in float place. This is the code: `
#include <stdio.h>
int main()
{
printf("%f\n",5);
printf("%f\n",5.5);
printf("%f",5);
return 0;
}
The output is:
0.000000
5.500000
5.500000`
My question is why it repeats the value? Specifically how it works on low level
I thought it might be connected to the stack.