Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link



Enter Your Email :

Copyright Disclaimer:
Section 107 of the Copyright Act Fair Use Contents .
We are forwarding content link(s) from our website to content website & We are not serving any contents.
Main Source:Google.com.All the Content PDF link(s) is/are obtained from GoogleSearch
for the purpose of Education & Teaching Intention. Not for commercial purpose.
Technicalsymposium.com is not liable/responsible for any copyright issues.

C Programming Source Codes & Study Notes-Free Download


C Program for SubString.

void main()

{

char a[30],b[30];

int i,j,l1,l2,c,f;

clrscr();

printf("OUTPUT\n");

printf("------\n");

printf("\n\n");

printf("\nEnter First String:");

scanf("%s",a);

printf("\nEnter String to Search:");

scanf("%s",b);

l1=strlen(a);

l2=strlen(b);

j=0;

c=0;

f=0;

for(i=0;i
{

x:

if(b[j]==a[i])

{

c++;

f=1;

j++;

if(c==l2)goto y;

}

else

{

if(f==1)

{

j=0;

c=0;

f=0;

goto x;

}

}

}

y:

if(c==l2)

printf("\n\t\tWord Found");

else

printf("\n\t\tWord Not Found");

getch();

}