#include <stdio.h>
void checkch(char str[50],char ch);
int main() {
char str[]="vanshikasingla";
char ch='b';
checkch(str[],ch);
}
void checkch(char str[],char ch){
for(int i=0; str[i]!= '\0';i++){
if(str[i]==ch){
printf("character is present");
return;
}
}
printf("character is not present");
}
To embed this project on your website, copy the following code and paste it into your website's HTML: