By
Unknown
At
2:46:00 PM
0
#include<conio.h>
#include<iostream.h>
#include<stdlib.h>
int function(char*s,char ch)
{ while(*s!='\0')
{
if(*s==ch)
return 1;
s++;
}
return 0;
}
void main(){
char s[]={"My name is usman"};
char ch='w';
if(function(s,ch)==0){
cout<<" not fount ";
}
else
cout<<"Found";
}
You Might Also Like
0 comments:
Post a Comment