MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / is_operator

Function is_operator

CPP/Trees/Expression_tree/BST.c:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15int is_operator(char data) {
16 switch(data) {
17 case '+':
18 return 1;
19 case '-':
20 return 1;
21 case '*':
22 return 1;
23 case '/':
24 return 1;
25 }
26 return 0;
27}
28
29int precedance(char ch) {
30 if(ch == '+' || ch == '-') {

Callers 1

initTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected