2
0

constants.c 432 B

123456789101112
  1. #include <stdio.h>
  2. #include <time.h>
  3. int main(void) {
  4. /* TODO: ensure that it is really time.h supplying the NULL constant */
  5. printf("%p\n", NULL);
  6. /* Cast to long to avoid format string mismatch in case CLOCKS_PER_SEC is
  7. defined as some other type. The expected value (1 million) will always fit
  8. in a long and will always have that value on conforming systems. */
  9. printf("%ld\n", (long)CLOCKS_PER_SEC);
  10. }