What will be the output of the following C code if the current system date is 6/22/2017? [code]#include<stdio.h> #include<stdlib.h> #include<tim

What will be the output of the following C code if the current system date is 6/22/2017?
Code:
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
    time_t ct;
    time(&ct);
    struct tm *mt=localtime(&ct);
    printf("%d\n",mt-> tm_mon+2);
}
A. 8
B. 7
C. 5
D. 6
 

Tìm kiếm

Back
Top