Bitwise operations. | Sololearn: Learn to code for FREE!

+2

Bitwise operations.

What practical application have bitwise operations? Give simple examples of practical application, so that you can clearly see that writing code with a bitwise operation is better than any other method.

7/29/2019 8:15:29 PM

Solo

7 Answers

New Answer

+4

Vasiliy the best answers are sometimes easier found by searching on a search engine eg Google , Bing , and so on or by checking on stackoverflow if <- we haven't answered it here.... https://stackoverflow.com/questions/2096916/real-world-use-cases-of-bitwise-operators

+3

https://www.sololearn.com/discuss/1847830/?ref=app

+3

You can always search the database of Q&A questions to find a related question first before posting.

+2

Hi. You can for example store an array of flags in an integer (each bit representing On/Off or True/False) Hope this helps. Cheers. C

+2

Sonic Unfortunately I did not find the proper answer in the search engine. πŸ˜•

+1

ChrA πŸ™‹ can you give an example in any programming language available to you?

+1

Hey. I've been on vacations but did some _minimal_ example here. https://code.sololearn.com/c0eXZWLvitwF/?ref=app Any comments on the code are more than welcome πŸ˜€ Hope this helps. Cheers. C