Link to home
Start Free TrialLog in
Avatar of taiping
taiping

asked on

what is this mean ">>"?

i have this code from my old colleague, can anyone tell me what does this means?

 
abyLic[4] = (byte) (iLicenseID);
        abyLic[5] = (byte) (iLicenseID >> 8);
        abyLic[6] = (byte) (iLicenseID >> 16);
        abyLic[7] = (byte) (iLicenseID >> 24);
       
        abyLic[8] = (byte) (iSMSCounter);
        abyLic[9] = (byte) (iSMSCounter >> 8);


the abyLic[] is an array and the iLicenseID is int.

what doest that mean by iLicenseId >> 8 ??
is that he is trying to set the value to 8 in abyLic[5]?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Shift right operator

Avatar of Ajay-Singh
Ajay-Singh

bitwise shift
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry the 512 binary should be 001000000000.
taiping - why did you ignore previous correct answers?