fork(1) download
  1. #include <iostream>
  2.  
  3.  
  4. void foo(int a[40]);
  5.  
  6. int main()
  7. {
  8. int x = 42;
  9. foo(&x);
  10. }
  11.  
  12.  
  13. void foo(int *a)
  14. {
  15. std::cout << a[0] << std::endl;
  16. }
  17.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
42