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