fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. bool test = true;
  6. printf("test = %d\n", test);
  7. printf("test = %d\n\n", !test);
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
test = 1
test = 0