Q83
What will be the output of the following C code if the system time is 1:52 PM (Sunday)? #include #include int main() struct tm *ptr; time_t t; char str[100]; t = time(NULL); ptr = localtime(&t); strftime(str,100,"%I",ptr); puts(str); return 0;
A.
13
B.
01
AnswerC.
1
D.
error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board