Q162
What will be the output of the following C code if it is executed on 2nd January, 2017 (system date)? #include #include int main() struct tm *local, *gm; time_t t; t=time(NULL); local=localtime(&t); printf("%d",local->tm_yday); return 0;
A.
0
B.
1
AnswerC.
2
D.
Error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board