Which of the following operators has the highest precedence in C++? 

  • Arithmetic operators (+, -) 
  • Logical operators (&&, ||) 
  • Relational operators (>, <) 
  • Parentheses ()
In C++, parentheses have the highest precedence among the listed options. They can be used to group operations and force a desired order of evaluation. This is a fundamental concept in most programming languages to control the order in which expressions are evaluated.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *