fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main () {
  5. char *p = malloc(2);
  6. p[0] = 'O';
  7. p[1] = 'i';
  8. p++;
  9. printf("%c\n", *p);
  10. printf("%p\n", p);
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/498149/101
Success #stdin #stdout 0s 4868KB
stdin
Standard input is empty
stdout
i
0x55682097e261