fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int a = 216;
  5. bool* v = (bool*)((void*)&a);
  6. std::cout << (*v == true) << std::endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
0