C has the special feature to manipulate with bits,in some application we require manipulation on bits such as system programming. C has bit-wise operator to support bit-wise operation ,possible bit-wise operator available in C are as follow-: (a-) Once Complement -: This operator is denoted as " ~ " [tilde] . This operator is unary in nature, i.e. it require single operand to perform an operation.It is one of the method used for data encryption. It works on binary pattern and convert all the one's into zero and zero's into one. Example -: consider the following bit pattern:- 110101001 Hence,its once complement will be 001010110. (b-) Bit-wise Left Shift -: This operator is denoted as " << " . This operator is binary in nature,i.e. it require two operands to perform an operation.The left operand is variable and right operand is in binary pattern,the bits are shifted to left and for each bit...
" The Techprogramiz is a computer science portal for C language. It contains well written, well thought and well explained C programming articles,basic to advance level"
