fork download
  1. #include <stdio.h>
  2. #include <limits.h>
  3.  
  4. int main(void) {
  5. long i = LONG_MAX - 1;
  6. long j = LONG_MAX;
  7. long k = i % j;
  8. printf("%ld", k);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
9223372036854775806