bitwise operators | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

bitwise operators

is there any real need for bitwise operators?

24th Jul 2016, 3:55 AM
sreeraj g
sreeraj g - avatar
5 Answers
0
It can be used for solving problems which are in binary. So maybe for creating any logical condition these operators could be used.
24th Jul 2016, 5:48 AM
PUNEET SINGH
PUNEET SINGH - avatar
0
any particular example which we need in real life
24th Jul 2016, 5:58 AM
sreeraj g
sreeraj g - avatar
0
since programming depends on bytes I would say yes. Multiplication and other math funktions are done this way.
24th Jul 2016, 8:07 AM
Eric Zeus
Eric Zeus - avatar
0
Here's an example 2 in binary is 0010, if you use a logical left shift that is <<2 you get 4, essentially a logical left shift doubles a number.
25th Jul 2016, 1:03 AM
Eric Gitangu
Eric Gitangu - avatar
0
MotorSpess;
5th Sep 2019, 2:27 AM
Juan Angel Quiroz Urrego
Juan Angel Quiroz Urrego - avatar