C program to print longest word in a string

C program to print longest word in a string

Input:

Enter a sentence:
CodeRegister is a learning portal for computer science aspirants!

Output:

Longest word in the string is CodeRegister

Implementation: