Ask Question

How do you Evaluate an equation doing dry run? In C + + language whats the order for using the operators like +, -, /, * ? For Example (2-5+10*3/4)

+3
Answers (2)
  1. 12 January, 01:48
    0
    Just as math in, - 3+30/4 the variable u use tells the recision

    for int it would be

    5 wich is wrong (4.5 is the answer)

    so u include iostream

    create main function, declare the variables and write the equation
  2. 12 January, 02:00
    0
    In most program languages, operator precedence is algebraic. Exponents, multiplication/division, addition/subtraction and I believe all the comparison operations are lowest. The search term would be "operator precedence".

    Operators of equal precedence are evaluated left to right.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “How do you Evaluate an equation doing dry run? In C + + language whats the order for using the operators like +, -, /, * ? For Example ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers