fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x0 = 0, x1 = 0, x2 = 1;
  5. printf("Valor de x0 | x2: %d\n", x0 | x2);
  6. printf("Valor de x1 | x2: %d\n", x1 | x2);
  7. printf("Valor de (x1 | x2) << 1: %d\n", (x1 | x2) << 1);
  8. printf("Valor de (x0 | x2) | (x1 | x2) << 1: %d\n", (x0 | x2) | (x1 | x2) << 1);
  9. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
Valor de x0 | x2: 1
Valor de x1 | x2: 1
Valor de (x1 | x2) << 1: 2
Valor de (x0 | x2) | (x1 | x2) << 1: 3