Isn't the %d data identifier uses to indicate integer value?

It is written in the explanation that %d is used for decimal but I think that for decimal or floating values, %f is used.

29th Oct 2018, 5:47 PM
Vikhyat Sharma
Vikhyat Sharma - avatar
1 Answer
+ 2
Decimal just represents base 10. And not decimal in 1.23. So decimal here means integer only. And you are also right about float.
29th Oct 2018, 6:32 PM
Megatron - avatar