Given the expression a = b + c * d, which operation will be performed first?

  • Addition (+)
  • Assignment (=)
  • Multiplication (*)
  • Variable Retrieval (a, b, c, d)
In most programming languages, including C++, multiplication (*) takes precedence over addition (+). So, in the given expression, c * d will be performed first.
Add your answer
Loading...

Leave a comment

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