Vidyalelo
C Programming · Q174

Standard Library Functions

Programming · C Programming · question 174

Q174

What will be the output of the following C code, if the system date is 6/23/2017? #include #include int main() struct tm *local; time_t t; t=time(NULL); local=localtime(&t); printf("%d",local->tm_mday); return 0;

A.
6
B.
22
C.
23
Answer
D.
error

Answer: Option C

Solution

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