fork download
  1. #include <iostream>
  2.  
  3. void foo(const char *p)
  4. {
  5. std::cout << p << '\n';
  6. }
  7.  
  8. int main()
  9. {
  10. const char * const s = "hello, world";
  11. foo(s);
  12. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
hello, world