int main() { char str[10];printf("Enter the String...:");gets(str,5,5,5,5,5);puts(str);}
Jack
Enter the String...:Jack
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!