Vidyalelo
C Programming · Q167

Standard Library Functions

Programming · C Programming · question 167

Q167

What will be the output of the following C code if the system date is 8/22/2016? #include #include int main() struct tm *ptr; time_t t; char str[100]; t = time(NULL); ptr = localtime(&t); strftime(str,100,"%B",ptr); puts(str); return 0;

A.
9
B.
August
Answer
C.
Aug
D.
Error

Answer: Option B

Solution

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