Vidyalelo
C Programming · Q60

Standard Library Functions

Programming · C Programming · question 60

Q60

What will be the output of the following C code? (By date we mean: date, month and year) #include #include #include int main() time_t ct; time(&ct); printf("%s ",ctime(&ct));

A.
only current date
B.
only current date and current time
C.
current date, current time and the day of the week
Answer
D.
only current time

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board