Question Bank (1 mark) · Q29
Q.How will be the number x = 998.286 displayed on the monitor?
Karnataka PUCTextbookShort· 1mImportance★★★★★est
86% · 133/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
With the default %f format, 998.286 prints as 998.286000.
When a floating-point value is printed with the plain %f conversion specifier, C displays it with six digits after the decimal point by default. Therefore x = 998.286 is padded with trailing zeros and shown as 998.286000. (A width/precis …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.