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));
}
#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

Join The Discussion