What does time(NULL) return on most systems?
Convert with localtime/gmtime to a struct tm and format with strftime. For elapsed CPU time use clock().
C Library Functions · Exercise 1 of 4
Twelve multiple-choice questions on header files, math, string, stdlib, ctype and time functions and their return values. Pick an option to check your answer instantly.
What does time(NULL) return on most systems?
Convert with localtime/gmtime to a struct tm and format with strftime. For elapsed CPU time use clock().
What does isdigit('7') return?
ctype tests return zero or non-zero; some libraries return bit masks such as 2048. Use them in conditions, not in comparisons with 1. To get the value use c - '0'.
Timed online tests with instant scores and explanations.