fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. char const * string = "Hello";
  5. std::cout << "string: " << string << std::endl
  6. << "casted: " << static_cast<void const*>(string) << std::endl
  7. << "member: ";
  8. std::cout.operator<<(string);
  9. std::cout << std::endl;
  10. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
string: Hello
casted: 0x2b1c038fbb7d
member: 0x2b1c038fbb7d