fork download
  1. #include <stdio.h>
  2.  
  3. enum { SIZE = 4 };
  4.  
  5. int main(void) {
  6.  
  7. int tab[SIZE] = {1, 2, 3, 4};
  8. for(unsigned i = 0; i < SIZE; ++i) {
  9. printf("i=%d :[(%d, %p), (%d, %p)]\n",
  10. i,
  11. tab[i], &tab[i],
  12. *(tab+i), (tab+i)
  13. );
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
i=0 :[(1, 0xbf83bff0), (1, 0xbf83bff0)]
i=1 :[(2, 0xbf83bff4), (2, 0xbf83bff4)]
i=2 :[(3, 0xbf83bff8), (3, 0xbf83bff8)]
i=3 :[(4, 0xbf83bffc), (4, 0xbf83bffc)]