fork download
  1. #include <stdio.h>
  2.  
  3. int a[] = { -1, -2, -3, -4 };
  4. int b[] = { 0, 1, 2, 3 };
  5.  
  6. int main()
  7. {
  8. int *p[] = { a, b };
  9. int **pp = p;
  10. printf("a=%p, b=%p, p=%p, pp=%p\n", (void*)a, (void*)b, (void*)p, (void*)pp);
  11. ++pp;
  12. printf("p=%p, pp=%p *pp=%p\n", (void*)p, (void*)pp, (void*)*pp);
  13. ++*pp;
  14. printf("p=%p, pp=%p *pp=%p\n", (void*)p, (void*)pp, (void*)*pp);
  15. ++**pp;
  16.  
  17. printf("%d\n", (++**pp)[a]);
  18. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
a=0x55b357b48040, b=0x55b357b48030, p=0x7ffc5b895490, pp=0x7ffc5b895490
p=0x7ffc5b895490, pp=0x7ffc5b895498 *pp=0x55b357b48030
p=0x7ffc5b895490, pp=0x7ffc5b895498 *pp=0x55b357b48034
-4