+ 4
What is %d use for?
10 Respostas
+ 8
// If you are not good in English, use HiTranslate to translate each paragraphs in the apps.
// https://play.google.com/store/apps/details?id=com.talpa.translate
+ 12
Please, Before asking a question on the Q/A, try to đSEARCH. . . to avoid from posting duplicate threads!
 ⚠Follow community RULES: https://www.sololearn.com/Content-Creation-Guidelines/
https://code.sololearn.com/W26q4WtwSP8W/?ref=app
https://code.sololearn.com/WvG0MJq2dQ6y/
+ 9
C uses formatted output. The 'printf' function has a special formatting character (%) â a character following this defines a certain format for a variable:
%c â characters
%d â integers
%f â floats
e.g. printf("%c %d %f", ch, i, x);
+ 6
In a printf statement, for example, it is used to print out a value in an integer format.
+ 5
In mathematics its a percentage symbol, in python and most programming languages it's used as a modulo operator symbol or a string formatter character and so much more
+ 2
Uh Iam not so good in eng.I didn't get them.plz explain more
+ 2
The Modulus Operator (%) is informally known as the remainder operator
because it returns the remainder when one integer is divided by another.
o Simply put the Modulus (Modular arithmetic) Operator will display the
remainder of the division equation.
âȘ 13%6=1
âȘ 7%4=3
âȘ 243%50=43
Let me know if this help ;)
+ 2
If you mean that (%d) in C As the first comment : it referes to the Format decimal .
Only % between two numbers referes to the reminder of the division process as the fourth comment đ.
0
%d is used for integer value