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