C program to get current date and time

C Program
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
 time_t ti;
 time(&ti);
 printf("%s",ctime(&ti));

}


No comments:

Post a Comment