Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Tamim Moh'd in general, bitwise operators are used on integral types such as int or char.
25th Dec 2022, 3:36 PM
Brian
Brian - avatar
0
What programming language?
25th Dec 2022, 11:58 AM
Knight
Knight - avatar
0
Here's an example of using the | operator to perform a bitwise OR operation on two binary values in C#: https://code.sololearn.com/cX7z8Gx3fSTE/?ref=app
25th Dec 2022, 12:43 PM
Calviղ
Calviղ - avatar
0
Tamim Moh'd You should specify programming language in your question tag. Binary files and binary notation is not the same thing. From your profile, it seems you are learning Python. Python eqivalent of Calviղ 's example. https://code.sololearn.com/cDAZ31WtmrxT/?ref=app
27th Dec 2022, 3:14 AM
Bob_Li
Bob_Li - avatar