0
%d is use for decimal value
int a=1.30; Printf("%d",a); Output show 1 Why it is ???
3 Respostas
0
Because it is type casting floating data type to integer data type
Hence ignore the numbers after point
0
Why we use %f for decimal value
0
We can use it but it will convert your integer value to floating value