Ask Question
19 February, 17:07

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)

+2
Answers (2)
  1. 19 February, 19:22
    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. 19 February, 19:38
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers