- 2

%d means

16th Apr 2020, 9:55 AM
3 Answers
+ 1
If you mean in C then "%d" is a format specifier. The format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable during taking input using scanf() or printing using printf()
16th Apr 2020, 10:05 AM
Arsenic - avatar
+ 1
Okay....I am sorry, I wrote in context to Python....
16th Apr 2020, 10:06 AM
Varun Vaswani
Varun Vaswani - avatar
The % function returns remainder of a number divided by other. For eg. 5%2 = 1 since the remainder is 1
16th Apr 2020, 10:04 AM
Varun Vaswani
Varun Vaswani - avatar