fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x[10]={0};
  5. //xがx[0]のアドレス
  6. //*xがx[0]のアドレスの中に入っている値
  7. //*(x+1)がx[1]のアドレスの中に入っている値
  8. //int a;
  9. //scanf("%d",&a);
  10. //*(x+3)=5;x[3]=5;と同じ意味
  11. scanf("%d",x+3);
  12. for (int i=0;i<10;i++){
  13. printf("%d",*(x+i));//printf("%d",x[i]);と同じ意味
  14. }
  15.  
  16. return 0;
  17. }
  18.  
  19.  
Success #stdin #stdout 0s 5516KB
stdin
2
4
stdout
0002000000