#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local, *gm;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_wday);
return 0;
}
a) 6
b) 5
c) error
d) 0
What will be the output of the following C code if the system date is 6/2/2017(Friday)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code if the system date is 6/2/2017(Friday)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!