C – Programming: no iosstream library should be used. Your codeshould be able to work for “code blocks”
Q1. Read from console input a string (length < 100) and printthe length of its longest common substring.
Eg.: Input: “abcdxyzefgabcdxyefxyz” Here the common substringsare substrings that appear more than one times in the giveninput.
So in this example, the common substrings are “abcd”, “xyz” and“ef”. Your ouput should be 4 since the longest common substring is“abcd”.
Hint: rank the prefixes.
Expert Answer
An answer will be send to you shortly. . . . .