fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. char *answer;
  6. printf("Type something:\n");
  7. scanf("%s", answer);
  8. printf("You typed \"%s\"\n", answer);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2296KB
stdin
asd
stdout
Type something:
You typed "(null)"