c check if char is y or n code example
Example 1: check if string in string c
if(strstr(sent, word) != NULL) {
/* ... */
}
Example 2: c check if char is an operator
char o = '+'; //Or some other character
if (o == '%' || o == '/' || o == '*' || o == '+' || o == '-') {
//Do something
//...
}