0

How do we identify a Negation operator in C++ ?

In the following C++ expression, -b+b**2-4*a*c/2*a which is a negation operator? -b or -4 ? What is the criteria to identify a negation operation?

17th Oct 2017, 2:47 PM
Antony Marianathan
Antony Marianathan - avatar
1 ответ
- 1
If there's an expression left to '-', it's minus, else it's negotiation.
21st Oct 2017, 7:01 PM
Timon Paßlick