C – Programming: Please don’t answer the question if you don’tuse Code Blocks. You could answer if you use a c programmingsoftware that functions similar to Code Blocks
Q1. Read from console input a string (length < 100) and printthe length of its longest common substring.
Eg: Input: “abcdxyzefgabcdxyefxyz” Here thecommon substrings are substrings that appear more than one times inthe given input.
So in this example, the common substrings are“abcdxy” and “ef”.
Your output should be 6 since the longest common substring is“abcdxy”.
Hint: rank the prefixes.
Expert Answer
An answer will be send to you shortly. . . . .