Examveda

What will be the output of the following C code? (By date we mean: date, month and year)
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
    time_t ct;
    time(&ct);
    printf("%s\n",ctime(&ct));
}

A. only current date

B. only current date and current time

C. current date, current time and the day of the week

D. only current time

Answer: Option C


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions