1.

Which of the following format specifiers is used to represent the hours in the 24 hour clock (0-23) format?(a) %I(b) %H(c) %i(d) %hI had been asked this question in an interview for job.My question is taken from Date and Time Function topic in section C Library of C

Answer»

Right CHOICE is (B) %H

The EXPLANATION: %H is a format specifier used to represent the number of HOURS in 24 hour clock format.



Discussion

No Comment Found

Related InterviewSolutions