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