fork download
  1. #include <stdio.h>
  2. #include <limits.h>
  3.  
  4. int main(void)
  5. {
  6. printf("%zu\n", sizeof(int));
  7. printf("%zu\n", sizeof(long));
  8.  
  9. long a = -3;
  10. unsigned int b = 2;
  11.  
  12. printf("%lu\n", a + b);
  13. printf("%lu\n", -1UL);
  14. printf("%lu\n", ULONG_MAX);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
4
4
4294967295
4294967295
4294967295