+ 1
Logical expression.
I need a help on logical expressions such as "<" and ">" operators. Is this expression "a<b<c" is valid? Anyone can explain?
2 ответов
+ 5
It depends on the language: it is valid in Python, for example, but not valid in languages with C-like syntax. You can achieve the same logic by doing (a < b) && (b < c).
+ 1
Oh! Ok. Thanks.
Now i am learning C++ and the question was releted to that.