Hello.Help me to understand.
Using Immediate Window of IDE Microsoft Visual Basic,calculate values of following
expressions on the base bit-by-bit operator Or.
In Immediate Window I'm writting following
?2 or 3 [Enter]
3
Result is 3. Is it so?
Thanks.

Recommended Answers

All 3 Replies

To understand this, you need to go back to basics. "OR" is a bitwise operation. The binary for 2 is X10, 3 is X11. ORing the two gives X11 which is 3.

Hoppy

Now I am assured.Thank you.

You should mark the thread as "Solved".

Hoppy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.