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