Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Language in C Interview Questions and Answers

Ques. How to set the system date through a C program ?

Ans. We can set the system date using the setdate( ) function as shown in the following program. The function assigns the current time to a
structure date.

#include "stdio.h"
#include "dos.h"

main( )
{
struct date new_date ;

new_date.da_mon = 10 ;
new_date.da_day = 14 ;
new_date.da_year = 1993 ;

setdate ( &new_date ) ;
}
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook