1.

Which of the following format specifiers is used to represent the name of the time zone?(a) %A(b) %B(c) %H(d) %ZThe question was posed to me during an interview.My query is from Date and Time Function in portion C Library of C

Answer»

The correct option is (d) %Z

The explanation: The FORMAT specifier %Z is used to SPECIFY the name of the time zone. %A- FULL weekday, %B- full MONTH name, %H-hours(0-23).



Discussion

No Comment Found

Related InterviewSolutions