?
What will be the output of the following C code, if the system date is 6/23/2017?
What will be the output of the following C code, if the system date is 6/23/2017?
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_mday);
return 0;
}
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_mday);
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login