Bitwise operators
I understand &, |, ^, <<, >>, ~.
So the last one is >>>. Right?
Or is there also a <<<?
Edit: cleaned up the post, + removed what I understand.
Edit 2: I just realized <<< doesn't exist and >>> only exists in Java.
Code:
(3 = 0011) & (5 = 0101) = (1 = 0001) (3 = 0011) | (5 = 0101) = (7 = 0111) (3 = 0011) ^ (5 = 0101) = (6 = 0110) (3 = 0011) << 5 = (48 = 00110000) (5 = 0101) >> 3 = (0 = 0000) ~(3 = 0011) = (12 = 1100)
Or is there also a <<<?
Edit: cleaned up the post, + removed what I understand.
Edit 2: I just realized <<< doesn't exist and >>> only exists in Java.
