Using C language print current date. This program works only in Turbo C.
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main()
{
struct date d;
getdate(&d);
printf("System Date : %d - %d - %d",d.da_day,d.da_mon,d.da_year);
getch();
return 0;
}
0 comments :
Post a Comment