They're used a lot when interacting with the Win32 API, or the POSIX API, or a number of other API, to manipulate bit fields and masks.
For example, have a look at the CreateWindowEx Win32 function.