Print the date using C program

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

Share this

Related Posts

Dear User,

Thank you for your comment. Hope you like this blog. Kindly share us on Social Media so others can be updated.

-Chief Administrative Officer.