0

what is meant %d

30th May 2019, 10:43 AM
MURALI.K.V.R
MURALI.K.V.R - avatar
3 Respostas
+ 3
Hi Mass Murali , 🍎 %d, is an format specifier which is used to specify integer number %d is used to represent a part of memory as an integer. same is %f and other speciers is work for float and so on 🍎 If we want to read and print integer using scanf() and printf() function, either %i or %d is used but there is subtledifference in both %i and %d format specifier. %d specifies signed decimal integer while %i specifies integer Have these 🍎 🍎 🍎 🍎
30th May 2019, 10:48 AM
DishaAhuja
DishaAhuja - avatar
+ 4
If we are talking about python this expression can have different meaning. ‘%d’ is used as a plaeholder in formatting output with print and is used to display “signed int” values. In formatting date / time with strftime() ‘%d’ does display the number of day in a month from a datetime object.
30th May 2019, 10:59 AM
Lothar
Lothar - avatar
0
thanks
30th May 2019, 11:01 AM
MURALI.K.V.R
MURALI.K.V.R - avatar