/* Write a C program that displays the position or index in the string S
where the string T begins, or - 1 if S doesn't contain T.
*/
#include<stdio.h>
#include<string.h>
#include<conio.h>
void main()
{
char s[30], t[20];
char *found;
clrscr();
/* Entering the main string */
puts("Enter the first string: ");
gets(s);
For more Click
where the string T begins, or - 1 if S doesn't contain T.
*/
#include<stdio.h>
#include<string.h>
#include<conio.h>
void main()
{
char s[30], t[20];
char *found;
clrscr();
/* Entering the main string */
puts("Enter the first string: ");
gets(s);
For more Click
0 comments:
Post a Comment