fork(1) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int a[5] = {1, 0, 2, 0, 3};
  5. int (&b)[5] = a;
  6. b[2] = 5;
  7. for (int e : a)
  8. std::cout << e << ' ';
  9. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
1 0 5 0 3