Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can an unsigned integer within the range of [0, 2^n) be converted to a signed integer within the range of [-2^(n-1), 2^(n-1)] using C++?