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