SOURCE CODE
Home
C & C++
JAVA
HTML
ASP.NET
XML
PROJECT
TIPS & TRICKS
CONTACT US
Page
C Program to Print Date
//(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;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment