What will be the output of the following C code? #include #include main() { struct tm t; time_t tc; t.tm_year=2017-1900; t.tm_mday=25; t.tm_mon=5; t.tm_hour=1; t.tm_min=30; t.tm_sec=0; t.tm_isdst=0;...


What will be the output of the following C code?<br>#include<stdio.h><br>#include<time.h><br>main()<br>{<br>struct tm t;<br>time_t tc;<br>t.tm_year=2017-1900;<br>t.tm_mday=25;<br>t.tm_mon=5;<br>t.tm_hour=1;<br>t.tm_min=30;<br>t.tm_sec=0;<br>t.tm_isdst=0;<br>tc=mktime(&t);<br>printf(ctime(&tc));<br>}<br>a) Sun Jun 25 01:30:00 2017<br>b) Sun June 25 1:30 2017<br>c) Sun Jun 25 1:30 117<br>d) Sun June 25 1:30:00 117<br>

Extracted text: What will be the output of the following C code? #include #include main() { struct tm t; time_t tc; t.tm_year=2017-1900; t.tm_mday=25; t.tm_mon=5; t.tm_hour=1; t.tm_min=30; t.tm_sec=0; t.tm_isdst=0; tc=mktime(&t); printf(ctime(&tc)); } a) Sun Jun 25 01:30:00 2017 b) Sun June 25 1:30 2017 c) Sun Jun 25 1:30 117 d) Sun June 25 1:30:00 117

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here