Program to find current date and time
#include <time.h>
#include <stdio.h>
main()
{
struct tm *ptr;
time_t lt;
lt = time(NULL);
ptr = localtime(<);
printf(asctime(ptr));
getch();
//return 0;
}
Comments
Post a Comment