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

Function precedance

CPP/Trees/Expression_tree/BST.c:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int precedance(char ch) {
30 if(ch == '+' || ch == '-') {
31 return 1;
32 } else if(ch == '*' || ch == '/') {
33 return 2;
34 } else if(ch == '^') {
35 return 3;
36 } else {
37 return 0;
38 }
39}
40
41int isAlNum(char ch) {
42 //48-57 0-9

Callers 1

convertToPostFixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected