Solution for Exercise 21-1
ex2101
#include <stdio.h> #include <time.h> int main() { time_t tictoc; time(&tictoc); printf("The time is now %ld\n",tictoc); return(0); }
Notes
* Sample output:
Of course, that time_t
value is valid for when I ran the program, which was on May 2, 2013 at 22:00.
Copyright © 1997-2024 by QPBC.
All rights reserved