title: Need fastest way to convert 2's complement to decimal in C
body: <p>I have a certain 18 bits (which are in 2's complement) within 32 bits. I need to convert them to decimal. Please show me a code snippet in C.</p>