• Post Reply Bookmark Topic Watch Topic
  • New Topic

Operator precedence &&,||,&,|  RSS feed

 
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
Boost this thread!