# Swap two Numbers using Bitwise Operator

Given a two Numbers, swap them using Bitwise Operator Solution: Bitwise XOR A bitwise XOR is a binary operation that takes two-bit patterns of equal length and performs the logical exclusive OR operation on each pair of corresponding bits. Solution: Continue reading Swap two Numbers using Bitwise Operator

# Operators in C#

Introduction In a computer language, operators are very important as we perform operations in our program with the help of these operators only. Let us take a small example. Consider the below-mentioned line: Here, we have used 2 operators, the first one is ‘+’ and the second one is ‘=’. Confused, why am I saying that the first operator is + even though we have … Continue reading Operators in C#

# Bitwise Operator’s

Introduction Bitwise Operators always scared developers (with no offence) but once developers understood the power of it, developers love them. Bitwise operator are very powerful operators if understood correctly. Its operators on ints and uints at the binary level. This means they look directly at the binary digits or bits of an integer.  Types of Bitwise Operator Bitwise AND (a & b) Bitwise AND is like logical AND in … Continue reading Bitwise Operator’s