Right shift assignment operator:
num >>= 1
is the same as num = num >> 1
http://msdn.microsoft.com/en-US/library/23as4533(v=vs.80).aspx
More Related Contents:
- How do I determine if multiple items are selected in a ListBox
- If statement continuing when false (multiple || and &&)
- What does question mark and dot operator ?. mean in C# 6.0?
- Can’t operator == be applied to generic types in C#?
- What is the difference between the | and || or operators?
- How do I overload the square-bracket operator in C#?
- Is there a C# case insensitive equals operator?
- What is the “??” operator for? [duplicate]
- Is relying on && short-circuiting safe in .NET?
- Why ‘&&’ and not ‘&’?
- Is there an exponent operator in C#?
- Is there any performance difference between ++i and i++ in C#?
- Is it possible to create a new operator in c#?
- Define a generic that implements the + operator [duplicate]
- Why do C#’s binary operators always return int regardless of the format of their inputs?
- What does |= (single pipe equal) and &=(single ampersand equal) mean
- explicit conversion operator error when converting generic lists
- Equality comparison between multiple variables
- Convert string value to operator in C#
- How can I calculate divide and modulo for integers in C#?
- How to call custom operator with Reflection
- What are the | and ^ operators used for? [duplicate]
- What does the operator “
- C# XOR on two byte variables will not compile without a cast [duplicate]
- What does the ‘%’ operator mean?
- How to get defined operators for a type in .net
- ToList()– does it create a new list?
- Why C# is not allowing non-member functions like C++
- sending mail along with embedded image using asp.net
- Change db table name in EF4 (entity framework 4)