COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
C LANGUAGE PROGRAM TO PRINT DATE
C program to print date
This c program prints current system date. To print date we will use getdate function.
C programming code (Works in Turbo C only)
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int 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;
}
