fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(int (&a)[20]) {
  5. for(int i = 0; i < 20; i++) {
  6. cout << a[i] << endl;
  7. }
  8. }
  9.  
  10. int main() {
  11. int a[20];
  12. for(int i = 0; i < 20; i++) {
  13. a[i] = i;
  14. }
  15. f(a);
  16. return 0;
  17. }
Success #stdin #stdout 0s 4848KB
stdin
Standard input is empty
stdout
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19