C program to find all substrings of a string

C program to find all substrings of a string

Output:

Enter the string: code
All substrings of string 'code' are:
code ode de cod co c o d e

Implementation: