fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[3] = {1,2,3};
  5. int b[2] = {4,5};
  6. int c[2] = {6,0};
  7. int d[4];
  8. int * x[4];
  9. x[0] = a;
  10. x[1] = b;
  11. x[2] = c;
  12. x[3] = d;
  13. printf("%d\n", *(x[0] + 1));
  14. printf("%d\n", x[1][1]);
  15. x[3][0] = x[0][2] + x[1][0];
  16. printf("%d\n", *x[3]);
  17. x[3]=x[0];
  18. printf("%d\n", *(x[3] + 1));
  19. printf("%d\n", x[3][2]);
  20. x[2]++;
  21. printf("%d\n",x[2][0]);
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
2
5
7
2
3
0