fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(int argc, char** argv)
  5. {
  6. char out[50];
  7. char *o = out;
  8. int c = 118;
  9. *o++ = c;
  10. printf("o is %d (%c)\n", out[0], o[0]);
  11. printf("o is %d (%c)\n", o[1], o[1]);
  12. printf("o is %d (%c)\n", o[2], o[2]);
  13. printf("c is %d \n", c);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
o is 118 ()
o is 0 ()
o is 0 ()
c is 118