1.

Which of the following functions is used to convert the date and time into a calendar format?(a) difftime()(b) clock()(c) mktime()(d) ctime()This question was addressed to me in an interview.My question comes from Date and Time Function topic in portion C Library of C

Answer»

Right option is (c) mktime()

The best I can EXPLAIN: The function mktime() is used to convert the DATE and time into a calendar FORMAT. The function difftime() is used to find the difference between two specified timings, the function CLOCK() is used to return the number of ticks.



Discussion

No Comment Found

Related InterviewSolutions