AD (728x90)

GoogleOnline Exam Test Seminar Sparkz IncEasy Link Exchange

Saturday 31 May 2014

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.

Seminars and Jobs information
Share it Please
/* 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

Written by

Java Basic Point blog is created for the MCA,M.Tech,B.Tech and Graduate students.So visit and get the benifits from this blog.

0 comments:

Post a Comment

© 2013 Learning Java. All rights resevered. Designed by Templateism