0
what is meant %d
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 🍎 🍎 🍎 🍎
+ 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.
0
thanks