0
Can someone explain this one?
int x=12; x = x<<3; Console.WriteLine(x);
2 Antworten
+ 15
<< means left shift it double the data as many times the right side value is one by one
x=12 and left shift three times
x=24 in first shift
x=48 in second shift and
x=96 in third shift
i.e., the final value of x is 96
0
Thanks for answer its very helpful :D