c check if char is an operator
snippet in c

c check if char is an operator

user4365

char o = '+';	//Or some other character

if (o == '%' || o == '/' || o == '*' || o == '+' || o == '-') {
	//Do something
    //...
}