fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char result[32];
  5. fscanf(stdin, "%s", &result);
  6. printf("'%s'", result);
  7.  
  8. return 0;
  9. }
Success #stdin #stdout 0s 2252KB
stdin
hello world
stdout
'hello'