Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Operator precedence &&,||,&,|

 
Mansi Dave
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
What is the order of precedence for these logical and bitwise operators?
thanks.
Mansi
 
Rory French
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order is as follows (highest precedence to lowest) :
&
^
|
&&
||
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic