Part 30 C# Operators : SHIFT OPERATOR
LEFT SHIFT OP & RIGHT SHIFT OP,
WE ARE GOING TO EXPLAIN HERE VERY Important OP for Binary Operations in C#.
Shift. This operator moves bit positions. It changes the bit representation of a type. The bits are shifted right (or left) a number of positions. The C# language enables bitwise shifting with the right and left shift operators.
A 'left shift' shift all bits to the left and a zero bit to be brought in on the right. A 'right shift' causes all bits to be shifted right one position.
In the case of a right shift on an unsigned value, a zero is brought in on the left. In the case of a right shift on a signed value, the sign bit is preserved.
This isn't something you probably do in C# a lot, but the operator was inherited ... have to work at the bit level; but if you need to, being able to shift is important.
Binary operators. The term "binary operators" is used to describe operators that receive two parameters. The term "bitwise operator" indicates an operator that receives one or two operands and is meant to change the bit representation of an integer.
#HindiTutorial #DilipSir #askDilipSir #Youtuber #YouTube #you_tuber
#Dilip #sir #india #tech #technology #videos #best #tutorial #how
#know_how #CSharp #Excel #Word #HTML #CSS #ComputerTips_Tricks
#ASP.net #WinFormApp #HowtoFix #VisualStudio #MSPowerPoint
#OutLook #SQL #Hindi #Urdu #SocialTech #Facebook #GamePlays
#gameplay #game_play #playGame #CallofDuty #CsharpinHindi #HTML5
#Advance_Excel