Using stack variables to return the result of arithmetic/logical expressions