Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
Bitwise OR operator takes 2 bit patterns, and perform OR operations on each pair of corresponding bits. The following example will explain it. Bitwise Right Shift Operator in C The following descriptions and examples are valid on Windows for X86 and x64 architectures. The implementation of left-shift and right-shift operators is significantly different on Windows RT for ARM devices. >> Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. A >> 2 = 15, which is 0000 1111. Circular Right Shift (no operator in C# and VB.NET). Bitwise operators are used for numbers. Note that in the third case we shifted a bit off the right end of the number, so it is lost. Although our examples above involve shifting literals, you can shift variables as well Exclusive-or encryption is one example when you need bitwise operations. The bitwise OR may be used to set to 1 the selected bits of the register described above. For example, the fourth bit of 0010 (decimal 2) may be set by performing The bitwise operator set is complete once the shift operators are understood. Using shift operators. << is the left shift operator and >> is the right shift operator. The general forms for these operators are shown here Информация взята v3.kz |
загрузка...
|