answersLogoWhite

0


Best Answer

The logic operator provides boolean results of combinations of other boolean expression, some of which might be relational expressions. For example...

bool result = (a < 3) && (b > 4);

The bitwise operator provides the same kind of boolean logic, AND, OR, and NOT, but it does it to the correspondingly ranks bits in one or two integers. For example ...

int result = (a & 0xff) | (!b);

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between bit wise operator and logic operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between emperor qin shihaung between the soldiers?

the difference between is that the empoer is older and wise


What is the difference between male and female Pokemon stat wise?

There's no difference.


What is the difference between Drop wise condensation and film wise condensation?

heat transfer rate high


What is the difference between pixies and eleves?

The difference between pixies and elves is that pixies are mischievous. Elves are thought to be wise and beautiful.


What is the difference between D-link switch and a normal cisco switches?

Technology wise there is no such difference.


Which Bit wise operator is used to determine whether a particular bit is on or off?

Bitwise OR [|] operator


What is the difference between 5 and 8 percentage wise?

5 is 62.5% of 8.


What is the difference between a learned man and a wise man?

A learned man is knowledgeable and well-educated in various subjects, while a wise man not only possesses knowledge but also demonstrates good judgment, discernment, and practical understanding in applying that knowledge to make sound decisions and navigate life effectively. Wisdom goes beyond mere intelligence and encompasses an ability to apply knowledge in a meaningful way.


What is the difference between dsl filters and adsl filters?

Check out the Wise Geek website for an explanation. Link is below: http://www.wisegeek.com/what-is-the-difference-between-dsl-and-adsl.htm


Compare between projectile weaving and rapier weaving?

Compare the difference between projectile looms and rapier loom by production-wise, price wise. Which machine gives more project with less capital investment.


Which bit wise operator is suitable for putting on a particular bit in a number?

bitwise OR is used..


What is the difference between cheap and frugal?

cheap is when something is not expensive. frugal is to be wise and wary of over spending on something.