Loading

C - Program to Display Date

C - Program to Display Date


#include<stdio.h>
#include<dos.h>
 
main()
{
   struct date d;
 
   getdate(&d);
 
   printf("Current system date is %d/%d/%d\n",d.da_day,d.da_mon,d.da_year);
 
   return 0;
}

This entry was posted in . Bookmark the permalink.

Leave a reply