KwickClips C · 46 sec · free
What does %.1f print for 87.5?
Short answer. 87.5.
In what order do values fill the placeholders?
Left to right, in order.
Remember
| %d int |
| %c char |
| %f float, filled in order |
Percent d, percent c, percent f. What do they mean? They are placeholders. Percent d takes an int. Percent c takes a char. Percent f takes a decimal. Percent d int. Percent c char. Percent f float. Values fill in order.
This clip is from the full lesson: Input and Output in C: printf and scanf — 7 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: GSEB Std 10 Computer Studies, Programming All levels C
More KwickClips from this lesson
What is & called?39 sec
Does getchar need a format specifier?41 sec
What does printf("%d", 2.5) print?43 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

