Click here to Skip to main content
14,977,979 members
Articles / Programming Languages / C++11


11 bookmarked

Two's Complement for Unusual Integer Sizes

Rate me:
Please Sign up or sign in to vote.
3.80/5 (2 votes)
19 Feb 2016CPOL3 min read
Getting negative numbers from 10-bit (and other unusual size) integers



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Orjan Westin
Software Developer (Senior)
United Kingdom United Kingdom
Orjan has worked as a professional developer - in Sweden and England - since 1993, using a wide range of languages (C++, Pascal, Delphi, C, C#, Visual Basic, PHP, Python and x86 assembler), but tends to return to C++.

Comments and Discussions