Vidyalelo
C Programming · Q173

Standard Library Functions

Programming · C Programming · question 173

Q173

What will be the output of the following C code if the current system date is 6/22/2017? #include #include #include int main() time_t ct; time(&ct); struct tm *mt=localtime(&ct); printf("%d ",mt-> tm_mon+2);

A.
8
B.
7
Answer
C.
5
D.
6

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board