fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. if ('\n' == 0xA) {
  5. std::cout << "'\\n' and 0xA have the same value";
  6. }
  7. return 0;
  8. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
'\n' and 0xA have the same value