This is my own collection of hard-earned knowledge about how integers work in C/C++, and how to use them carefully and correctly. In this article, I try to strike a balance between brevity (easing the reader) and completeness (providing absolute correctness and extensive detail). Whenever I read or write C/C++ code, I need to recall and apply these rules in many situations, such as: Choosing an ap