Latest Movie :
Home » , » C Program to Get the Current System Time

C Program to Get the Current System Time

{[['']]}

This program reads the current system time and displays it in the form HH:MM:SS
#include <stdio.h>
#include <dos.h> int main(void)
{
struct time t;
gettime(&t);
printf(“The current time is: %2d:%02d:%02d\n”, t.ti_hour, t.ti_min, t.ti_sec);
return 0;
}
Share this article :

Post a Comment

Feel Free to Say thanks Comment Here

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. SoftwareLibrary4u - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger