Become Our Fan on Social Sites!

Facebook Twitter

Google+ RSS YouTube

Wednesday 2 October 2013

Print date using C language program

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