Need fastest way to convert 2's compliment to decimal in C

Posted by kartik on Stack Overflow See other posts from Stack Overflow or by kartik
Published on 2010-04-22T07:48:00Z Indexed on 2010/04/22 7:53 UTC
Read the original article Hit count: 226

Filed under:

I have certain 18bits(which are in 2's compliment) with in 32 bits. I need to convert them to decimal. Pl show a code snippet in C.

Thanks!

© Stack Overflow or respective owner

Related posts about c