What is the main motivation behind using bitwise operators in a program? I have seen certain experienced programmers using extensive amount of bitwise operators (&,|,^,<<,>>) in their code to solve a difficult problem in a few lines.
Could someone please provide some tutorials that explain how to implement bitwise operators? Also, some links to problems that require usage of bitwise operators would be appreciated. Thanks in advance.