0
How can i print current time, in C.
2 Respostas
+ 6
here's an example hasan
#include <stdio.h>
#include <time.h>
void main()
{
time_t t;
time(&t);
clrscr();
printf("current date and time : %s",ctime(&t)); getch(); }
+ 5
See this, as this contains more information
https://www.studytonight.com/c/programs/misc/display-current-date-and-time