Check out example codes for "c check if char is an operator". It will help you in understanding the concepts better.

Code Example 1

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

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

Learn ReactJs, React Native from akashmittal.com