fork download
  1. #include <stdio.h>
  2. #include <locale.h>
  3.  
  4. int main(void) {
  5. int positivo = 32767;
  6. int negativo = -32768;
  7. setlocale(LC_ALL,"Portuguese");
  8. printf("%d +1 é %d\n", positivo, positivo + 1);
  9. printf("%d -1 é %d\n", negativo, negativo - 1);
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/169860/101
Success #stdin #stdout 0s 4580KB
stdin
Standard input is empty
stdout
32767 +1 é 32768
-32768 -1 é -32769