#include <stdio.h>
int main()
{
float i;
i=1;
printf("%d",i);
return 0;
}
What should be the output of the code? Online compilers are giving garbage value but according to my logic shouldn't the float be converted to int and the float part get truncated and just print 1 as the output?