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

Bitwise operators

What the use of bitwise operators?

3rd Jul 2021, 6:56 AM
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ - avatar
9 Answers
3rd Jul 2021, 7:03 AM
Ayush
Ayush - avatar
+ 4
Bitwise operators are characters that represent actions to be performed on single bits. A bitwise operation operates on two-bit patterns of equal lengths by positionally matching their individual bits: A logical AND (&) of each bit pair results in a 1 if the first bit is 1 AND the second bit is 1. See here more info https://whatis-techtarget-com.cdn.ampproject.org/v/s/whatis.techtarget.com/definition/bitwise?amp_js_v=a6&amp_gsa=1&amp=1&usqp=mq331AQKKAFQArABIIACAw%3D%3D#aoh=16252961460364&referrer=https%3A%2F%2Fwww.google.com&amp_tf=From%20%251%24s&ampshare=https%3A%2F%2Fwhatis.techtarget.com%2Fdefinition%2Fbitwise #smart
3rd Jul 2021, 7:09 AM
Smart Doge
Smart Doge - avatar
3rd Jul 2021, 8:40 AM
Tharul Nejana
Tharul Nejana - avatar
- 1
Calviղ Basically, bitwise operation operands are converted to 32-bit integer
4th Jul 2021, 9:33 AM
Pemadam
- 1
Maybe you want to see this code? https://code.sololearn.com/cfxsTQYztlUV/?ref=app
4th Jul 2021, 10:09 AM
Pemadam
- 2
It would be more precise for the above article's author to write "Bitwise operators are symbols ..." rather than "Bitwise operators are characters ..." character is a common term, more closely related with strings rather than bits in numeric data.
3rd Jul 2021, 8:19 AM
Ipang
- 2
Some of the common use cases of bitwise in JavaScript, check out this code https://code.sololearn.com/cvOWut2HJNHW/?ref=app
4th Jul 2021, 4:26 AM
Calviղ
Calviղ - avatar
- 2
Sorry can you explain for in c#?
4th Jul 2021, 10:24 AM
Mohammad mahdi Maghsoudlu
Mohammad mahdi Maghsoudlu - avatar
- 2
Sir I want python code for 7425 ÷550
4th Jul 2021, 3:59 PM
Guna sekaran
Guna sekaran - avatar