How to get the current time with preprocessor macro in C

1 Answer

0 votes
#include <stdio.h>

int main() {
	printf("%s\n", __TIME__);
}




/*
run:

08:55:12

*/

 



answered Apr 21, 2022 by avibootz

Related questions

1 answer 136 views
1 answer 128 views
1 answer 179 views
179 views asked Dec 22, 2018 by avibootz
2 answers 114 views
1 answer 122 views
1 answer 153 views
...