fork download
  1. #include <stdio.h>
  2.  
  3. #include <stdio.h>
  4. #include <stdint.h>
  5.  
  6. int main()
  7. {
  8. uint32_t x, y;
  9.  
  10. x = 1;
  11. y = 1;
  12.  
  13. if (x &+ y) {
  14. printf("Integer overflow!\n");
  15. } else {
  16. printf("No overflow\n");
  17. }
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
Integer overflow!