Thursday, February 27, 2014

Program to display current time

#include <time.h>
#include <stdio.h>

int main(void)
{
printf("\t\t\t");
time_t mytime;
mytime = time(NULL);
printf(ctime(&mytime));

return 0;
}

No comments:

Post a Comment