Write a C program to implement a function that finds out the longest word in a text stream (terminated by EOF) and returns the length of the string. Both the longest word and the length should be printed from the main function. If there are two or more words that have the same length and qualify to be the longest, print the first one.
Sample execution:
Enter the text stream:>
Indian Institute of Technology, Kharagpur
The longest word is: Technology,
The length of the longest word is: 11
BONUS QUESTIONS (not to be evaluated as a component of this assignment)