fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int foo[42];
  5.  
  6. printf("foo: %p\n", foo);
  7. printf("&foo: %p\n", &foo);
  8. printf("foo+1: %p\n", foo+1);
  9. printf("&foo+1: %p\n", &foo+1);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
foo:    0xbff26e28
&foo:   0xbff26e28
foo+1:  0xbff26e2c
&foo+1: 0xbff26ed0