fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char *a = "xyz";
  5. void *p = a;
  6. char c = *(char*)p;
  7. char *tmp = p;
  8. p = ++tmp;
  9. printf("%p %p %c\n", (void*)a, p, c);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0x8048580 0x8048581 x