Question: I give upvotes. C language Write a subprogram called prec that you send an operator to and return an integer value for each precedence level
I give upvotes. C language
Write a subprogram called "prec" that you send an operator to and return an integer value for each precedence level using if statements.
For example, if the operator is '+' or '-' then return 1, but it the operator is '*' or '/' then return 2.
This sets precedence of multiplication and division equal to each other and higher than the other two operators.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
