#include <stdio.h>
#include <stdlib.h>
int main() {
int a=100;
printf("%f",a);
return 0;
}
As we can see I declared a variable a
with integer data type, so that it's going to allocate 4 bytes of space.
Next in printf
I have used %f ( float)
that means it have to print in float value whatever the input is, right?
But when I execute the code i'm getting 0.000000 as an output (whatever value I give it's just giving the output 0.0000).