首页 > 解决方案 > Comparison Vs Relational expressions in c++

问题描述

I was recently asked a question it was

"The expression x<y is called a(n)?"

  1. Comparison expression.
  2. Logical expression.
  3. Arithmetic expression.
  4. Relational expression.
  5. None of the above.

I thought it was a comparison expression due to < however it was a relational expression. I've tried looking up difference and such for comparison and relational but I honestly think they are the same thing. Can someone explain to me the differences between the expressions?

标签: c++

解决方案


问题是关于关系表达式,请参阅http://eel.is/c++draft/expr#rel


推荐阅读