Q:

C program to print date

0

C program to print date

 

C program to print current system date. To print date, we will use getdate function.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main()
{
   struct date d;

   getdate(&d);

   printf("Current system date: %d/%d/%d", d.da_day, d.da_mon, d.da_year);
   getch();
   return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now