Live quiz

C Programming - Part 87

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C code if the system date is 8/22/2016? #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
  • B
  • C
  • D