1
0

zippo1.c 659 B

1234567891011121314151617181920
  1. /* zippo1.c -- zippo info */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int zippo[4][2] = { {2,4}, {6,8}, {1,3}, {5, 7} };
  6. printf(" zippo = %p, zippo + 1 = %p\n",
  7. zippo, zippo + 1);
  8. printf("zippo[0] = %p, zippo[0] + 1 = %p\n",
  9. zippo[0], zippo[0] + 1);
  10. printf(" *zippo = %p, *zippo + 1 = %p\n",
  11. *zippo, *zippo + 1);
  12. printf("zippo[0][0] = %d\n", zippo[0][0]);
  13. printf(" *zippo[0] = %d\n", *zippo[0]);
  14. printf(" **zippo = %d\n", **zippo);
  15. printf(" zippo[2][1] = %d\n", zippo[2][1]);
  16. printf("*(*(zippo+2) + 1) = %d\n", *(*(zippo+2) + 1));
  17. return 0;
  18. }