long long result; result = num1; result = (result << 8) | num2; result = (result << 24) | num3;