Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
Operator precedence
Divya Eknath
Greenhorn
Posts: 9
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anybody please tell me the precedence of bitwise/ligical operators:&,^ and |?
In some books its given as & ^ |, while in others it is & | ^.
wise owen
Ranch Hand
Posts: 2023
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
&,^, |
Expressions, Statements, and Blocks
Simeon Cherniy
Greenhorn
Posts: 21
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The order is: & ^ |
x^y = (x | !y) & (!x | y)
That's why the priority of XOR(^) is higher
5-year Student of <br />Moscow Institute of Physics and Technology.
Simeon Cherniy
Greenhorn
Posts: 21
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
x^y = (x | y) & (!x | !y)
5-year Student of <br />Moscow Institute of Physics and Technology.
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
< operator
code behaving strangely
Multiple Assignments from Khalid's book
Operators
From deepak's mock
More...