fork(8) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const char* myString = "Hello";
  6. cout << "string: " << myString << endl
  7. << "*string: " << *myString << endl
  8. << "string[0]: " << myString[0] << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 4508KB
stdin
Standard input is empty
stdout
string:    Hello
*string:   H
string[0]: H