fork download
  1. #include <typeinfo>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. cout << (typeid(int) == typeid(char)) << endl; //
  8. cout << (typeid(double) == typeid(100.40)) << "\n" << endl; // FALSE
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0
1