Checking the string for a given substring
If the substring is found, the program will print the index within the string where the substring has been found.
Program:
#include<stdio.h>
#define MAX 50
int main()
{
char str[MAX], search[MAX];
int length1 = 0, length2 = 0, i, j, flag=0;
...
kaustubhk.hashnode.dev2 min read