language : C
In this part you will write a calculator for arithmeticexpressions in prefix notation.
————1. Write a function that gets an array of tokensrepresenting an arithmetic expression in
the prefix notation, and computes the evaluation of the expression.Use the stack
evaluation discussed in class.
int prefix_eval_tokens(char** prefix_expr, int n_tokens)
Examples:
On input [“+”, “5”, “-“, “7”, “2”] the function will return10.
This is because the expression is : ( 5 + ( 7 – 2 ) ) = 10.
* You may assume that all intermediate values in the computationare between 0 and
99
** You may assume that the results of all division operations areintegers.
*** You may use
PayPal Gateway not configured
PayPal Gateway not configured