fork(1) download
  1. #include <iostream>
  2.  
  3. class Test
  4. {
  5. public:
  6. void output() { std::cout << "In output function!" << std::endl; }
  7. };
  8.  
  9. int main()
  10. {
  11. Test* ptr = nullptr;
  12.  
  13. ptr->output();
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3296KB
stdin
1
2
10
42
11
stdout
In output function!