My int values:
int a= 0x02; int b= 1; int c= 2; int d = 0; int e = 0; int f = 0; int g= 1;
How can I concatenate these integers and get a single int value?
and the result int value should have first 8 bits for "a" and 4 bits each for the rest??
Something like : 2120001
apossibly occupying 32 bits ?0x02is just2and there is no way to determine the number was defined in hex.ints. You add ints, and concatenatestrings. You could convert each of your ints to a string, concatenate them, and convert back to an int, but that result is not even guaranteed to be an int.