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.
Annex
0
Newbie Poster
Recommended Answers
Jump to PostTo 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
All 3 Replies
Reply to this topic
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.