1.

The purpose of the function ctime() is that ___________(a) it returns a string representing the local time(b) it returns a void string(c) it returns a string representing the time in UTC format(d) it returns a string representing the time stored in a structureI got this question in class test.I'm obligated to ask this question of Date and Time Functions in chapter C Library of C

Answer»

Correct OPTION is (a) it returns a STRING representing the local time

To explain: The library function ctime() returns a string representation of the local time. The function asctime() returns a string representing the time stored in a STRUCTURE.



Discussion

No Comment Found

Related InterviewSolutions