/* Write a C program that displays the position or index in the string S.
char s, t;
/* Entering the main string */
puts(“Enter the first string: “);
/* Entering the string whose position or index to be displayed */
puts(“Enter the string to be searched: “);
/*Searching string t in string s */
printf(“Second String is found in the First String at %d position.\n”,found-s);
Enter the first string:
Enter the string to be searched:
Second String is found in the First String at 3 position.