fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i;
  5. int b[3]={10,20,30};
  6.  
  7. change(b);
  8.  
  9. return 0;
  10. }
  11.  
  12. void change(int a[]){
  13. int i;
  14. for(i=0;i<2;i++){
  15. printf("%d\n",a[i+1]+1);
  16. }
  17. }
  18.  
  19.  
  20.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
21
31