Code Snippets C

#include
int main(void)
{
char str[100];
printf("Enter a string (less than 100 chars): ");
gets(str);
printf(str); /* output the string */
return 0;
}