fork(1) download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. void print (int x[]){
  4. for(int i = 0; i < 3; i++){
  5. cout << x[i] << " ";
  6. }
  7. cout << endl;
  8. }
  9.  
  10. int main(){
  11. int arr[3] = {1, 2, 3};
  12.  
  13. print(arr);
  14. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
1 2 3