How can i print current time, in C. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How can i print current time, in C.

5th Sep 2020, 3:35 PM
Hasan Kuluk
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(); }
5th Sep 2020, 3:37 PM
Piyush
Piyush - avatar
5th Sep 2020, 4:23 PM
Nilesh
Nilesh - avatar