fork(7) download
  1. #include <stdio.h>
  2. char s1[7] = "1234";
  3. int main()
  4. {
  5. char *p;
  6. p = s1 + 2;
  7. *p = '0';
  8. printf("%s", s1);
  9. }
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
1204