# include <stdio.h>
int main()
{
int a=4;
printf("%f",a);
}
Output
0.000000
Also
# include <stdio.h>
int main()
{
float a=4.5;
printf("%d",a);
}
Output
0
Can anyone explain the behaviour of the above outputs ? I know using different coversion specification is stupid, but i am just asking for the theoretical purpose.