Code Snippets C

#include
#include
int main()
{
char line[120];
printf("Enter a line: ");
fgets(line, sizeof(line), stdin);
printf("The length of the line is: %d\n", strlen(line));
return (0);
}