I have a integer array, int KEY[32], that stores the binary representation of a four letter quadgram, e.g.:
char quadgram[4] = {'T','I','O','N'};
Where the binary representations of the characters are:T => 01010100, I => 01001001, O => 01001111, N => 01001110. I have converted these binary numbers into the integer array:
KEY[32] = 01010100010010010100111101001110;
Now I need to convert this KEY into its literal binary value, i,e:
int KEY_BIN = 1414090574; // in decimal.
How would I accomplish converting KEY into KEY_BIN?
<<or>>) and the binary OR operator|.