fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. char *str;
  5.  
  6. int main(void){
  7. str = malloc(10);
  8. scanf("%s", str);
  9. printf("your input is '%s'\n", str);
  10. free(str);
  11. return 0;
  12. }
Success #stdin #stdout 0s 2292KB
stdin
HELLO
stdout
your input is 'HELLO'