Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question


if you are asked to build a simple calculator, what do you

  plan to do? example input - "1+2*3/(5-4)-6 " output - "1" (coded solution is preferred).
java, c++, algorithm, code

Interview Answer

1 Answer


str="1+2*3/(5-4)-6 "; i=eval(str); printf("%d",i);

MiKL~ on Feb 29, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.