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