check if character in array c 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
//...
}