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