fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char str[100];
  5.  
  6. printf("Enter a string: ");
  7. gets(str);
  8.  
  9. printf("You entered: %s\n", str);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5288KB
stdin
aaaaaaaaaa
stdout
Enter a string: You entered: aaaaaaaaaa