#include<stdio.h>
#include<time.h>
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
c) Aug
d) Error
What will be the output of the following C code if the system date is 8/22/2016?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code if the system date is 8/22/2016?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!