fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char foo[] = "something";
  5. printf("\n%s",foo);
  6. char *p = foo;
  7. *p++ = 'S';
  8. printf("\n%s",p);
  9. printf("\n%s",foo);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
something
omething
Something