fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i;
  5. char s[100];
  6. scanf("%s",s);
  7. printf("%s\n -> ",s);
  8.  
  9. s[0]='I';
  10.  
  11. printf("%s\n",s);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
  -> I