fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char c[6] = {'a', 'b', 'c', 'd', 'e', 'f'};
  5.  
  6. printf("c == %p\n", c);
  7.  
  8. printf("c + 3 == %p\n", c + 3);
  9.  
  10. printf("(c + 3) - c == %p", (c + 3) - c);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
c == 0x7ffdbc86c2c0
c + 3 == 0x7ffdbc86c2c3
(c + 3) - c == 0x3