Vidyalelo
C Programming · Q95

Standard Library Functions

Programming · C Programming · question 95

Q95

What will be the output of the following C code if the system date is 6/2/2017(Friday)? #include #include 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
Answer
C.
error
D.
0

Answer: Option B

Solution

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