This program will get or read the current system date from the system. It displays Year, Month and Day.

#include
#include

int main(void)

{
struct date d;
getdate(&d);
printf(“The current year is: %dn”, d.da_year);
printf(“The current day is: %dn”, d.da_day);
printf(“The current month is: %dn”, d.da_mon);
return 0;
}

Read Users' Comments (0)

0 Response to " "

Post a Comment