1.

Which of the following format specifiers is used to specify whether the given time is in AM or PM?(a) %P(b) %I(c) %X(d) %pThe question was asked in an online interview.Enquiry is from Date and Time Function in division C Library of C

Answer» CORRECT answer is (d) %p

The best I can explain: %p (small letter) is used to specify WHETHER the given time is in AM or PM. %I is used to represent the number of hours in the 12 HOUR clock format. %X is used to represent the standard time zone.


Discussion

No Comment Found

Related InterviewSolutions