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.  
  10. printf ("*x[0] = {%i, %i, %i, %i}\n",
  11. *x[0], *(x[0]+1), *(x[0]+2), *(x[0]+3));
  12. printf ("*x[1] = {%i, %i}\n", *x[1], *(x[1]+1));
  13. printf ("*x[2] = {%i, %i, %i}\n",
  14. *x[2], *(x[2]+1), *(x[2]+2));
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
*x[0] = {1, 2, 3, 4}
*x[1] = {5, 6}
*x[2] = {7, 8, 9}