fork download
  1. /* constant.h -- defines some global constants */
  2. static const double PI = 3.14159;
  3. static const char * MONTHS[12] =
  4. {"January", "February", "March", "April", "May", "June", "July",
  5. "August", "September", "October", "November", "December"};
  6. /* file1.c -- use global constants defined elsewhere */
  7. #include "constant.h"
  8. /* file2.c -- use global constants defined elsewhere */
  9. #include "constant.h"
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:7:22: fatal error: constant.h: No such file or directory
 #include "constant.h"
                      ^
compilation terminated.
stdout
Standard output is empty