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