InterviewSolution
Saved Bookmarks
| 1. |
Choose the correct description for control string %-+7.2f.(a) – means display the sign, + means left justify, 7 specifies the width and 2 specifies the precision(b) – means left justify, + means display the sign, 7 specifies the width and 2 specifies the precision(c) – means display the sign, + means left justify, 7 specifies the precision and 2 specifies the width(d) – means left justify, + means display the sign, 7 specifies the precision and 2 specifies the widthThis question was posed to me during a job interview.My enquiry is from printf topic in division Input and Output in C of C |
|
Answer» Right choice is (b) – means left justify, + means display the sign, 7 specifies the WIDTH and 2 specifies the precision |
|