plz give me code for this problem:
i am to enter a main string(e.g elephant) and a sub string (e.g ant).i have to find whether the main string contains the substring or not.if it does , i have to return the location of substring & replace it with a new string.i have done it using pointers but i want it without using pointers.
i only have to use arrays.