Bitwise Operators in C - Tutorialspoint
文章推薦指數: 80 %
Bitwise Operators in C ; <>
BinaryRightShiftOperator.Theleftoperandsvalueismovedrightbythenumberofbitsspecifiedbytherightoperand.
A>>2=15i.e.,00001111
Example
TrythefollowingexampletounderstandallthebitwiseoperatorsavailableinC−
LiveDemo
#include
延伸文章資訊
- 1[ C 文章收集] Bitwise Operation - 程式扎記
Bitwise operator 介紹: * << SHIFT LEFT , >> SHIFT RIGHT 這兩個運算子的功能主要是移動一個變數中的所有位元,位元向左/ 向右移動之後,最高位/ ...
- 2Bitwise operations in C - Wikipedia
In the C programming language, operations can be performed on a bit level using bitwise operators...
- 3你所不知道的C 語言:bitwise 操作 - HackMD
Write a macro with two arguments a and pos, where a is a byte and the pos specifies a bit positio...
- 4Bitwise operations in C - Wikipedia
- 5Bitwise Operators in C: AND, OR, XOR, Shift & Complement
Bitwise operators are special operator set provided by 'C.' · They are used in bit level programm...