+ 3
How does << operator work in C# programming?
C# Programming
7 odpowiedzi
+ 7
Bitwise left shift:
On the leftside is the number you want to shift, on the right side the amount of shifts
For example 4 << 2
4 = 00000100
shift it to the left two times:
--> 00010000 = 16 = 4 * 2^2
n << m = n * 2^m
https://www.sololearn.com/learn/4087/?ref=app
+ 3
thanks
+ 2
shift left is used for multiplication by 2 ...if a=4 then a<<1 this means a*2 =8 if a<<2 this means a*2*2 etc a<<4 means a*2*2*2*2 .....while shift right is for division in the same way a>>2 = (a/2)/2 or a/4
0
what do I have to fill in
0
the question is. x__. and println........
0
would be nice to get an answer, I have tried several possibilities,without sucsess
0
the question is x_. _ and println ?