Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

bool behaviour (convertion/promotion) for logical and artihmetic opera...

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 2,06 sec, absolute running time: 0,23 sec, absolute service time: 2,3 sec 
fork mode |  history  | discussion
true:1 false: 0 b1(2): 1 b2(4):1

true & true = true; 1 & 1 = 1
true | true = true; 1 | 1 = 1
true && true = true; 1 && 1 = 1
true || true = true; 1 || 1 = 1