#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
struct tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_mon+2);
}
a) 8
b) 7
c) 5
d) 6
What will be the output of the following C code if the current system date is 6/22/2017?
-
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 current system date is 6/22/2017?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!