#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_isdst);
return 0;
}
a) DST is in effect
b) DST status is unknown
c) DST is not in effect
d) DST is corresponding with local time
What is the meaning of the following C code if output is 0?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the meaning of the following C code if output is 0?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!