Answer to Question #185951 in C++ for Mridul

Question #185951

What is wrong with the following C++ expression? Explain.

−(b ∗ b − (4 ∗ a ∗ c)))/(2 ∗ a) ;


1
Expert's answer
2021-04-26T16:28:35-0400

The problem with this expression is that the number of parentheses are not balanced. It has a mismatching parentheses. This expression contains three opening parentheses and four closing parentheses. Hence it will cause errors. Another problem is that it contains non-ascii characters hence the c++ compiler will not understand them. The correct expression can be:

-(b * b-(4*a*c))/(2*a); ;



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS