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]?
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]?
Shift right operator
bitwise shift
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry the 512 binary should be 001000000000.
taiping - why did you ignore previous correct answers?