#include<conio.h>
#include<stdio.h>
int abc(char a[],char s,int *x);

void main()
  {
	 char a[30],s;
	 int x=0;
	 clrscr();
	 printf("ENTER ANY STRING");
	 scanf("%s",a);
	 printf("ENTER SEARCHING CHARACTER");
	 scanf("%s",s);
	 abc(a,s,&x);
	 if(x==0) printf("CHARACTER NOT PRESENT");
	 else printf("CHARACTER PRESENT AT POSITION");
	 getch();
  }

int abc(char a[],char s,int *x)
{
	 int j;
	 for(j=0;a[j]!='\0';j++)
	     if(a[j]==s)  return 1;
}