Question: int evaluatePostfix ( char * postfix ) { int i; int result; int top = - 1 ; int stack [ Max _ Length ]
int evaluatePostfixchar postfix int i; int result; int top ; int stackMaxLength; for i ; postfixi; i if isOperandpostfixi stacktopintpostfixi; else int a stacktop; int b stacktop; result evaluateb a postfixi; stacktop result; return result; Return the final result
Correct this function that it can evalute corrctly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
