fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char a, b, c;
  5. printf("Size of datatype is %zu byte(s)\n", sizeof(char));
  6.  
  7. a = 118; // 0 111 0110
  8. b = 25; // 0 001 1001
  9. c = a + b; // 1 000 1111
  10. printf("%d + %d = %d\n", a, b, c);
  11.  
  12. a = 118; // 0 111 0110
  13. b = 25; // 0 001 1001
  14. c = a * b; // 1011 1 000 0110
  15. printf("%d * %d = %d\n", a, b, c);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
Size of datatype is 1 byte(s)
118 + 25 = -113
118 * 25 = -122