?
What will be the output of the following C code if the current system date is 6/22/2017?
What will be the output of the following C code if the current system date is 6/22/2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct tm tm;
int main()
{
time_t ct;
time(&ct);
tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_year);
}
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct tm tm;
int main()
{
time_t ct;
time(&ct);
tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_year);
}
Join the Discussion
Login to post a comment or share your explanation.
Login