0
what is meant %d
3 Answers
+ 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