411 REFERENCE · Wikibooks
C++ Language/Type/HungarianPrefixes
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
C++'s signed integer types are signed char, short, int, and long long.
On Win32, the sizes of those are 1, 2, 4, and 8 bytes (respectively), but that might be different on other platforms.
Each of those types has an unsigned version (e.g., unsigned int instead of int).
C++'s floating-point types are float and double.
On Win32, the sizes of those are 4 and 8 bytes (respectively).
A popular programming practice is to name your variables using a "Hungarian prefix", where its name's first few letters is an encoding of that type (e.g., variable fVar has type float), but the language makes no such requirement.
Most forms of Hungarian notation are discouraged in modern C++, though, as they clutter code and hinder maintainability. If the type of a variable were changed from an int to a long, every use of that variable name would need to be modified. For example, int iCount would need to become long lCount, and iCount += 2 would need to become lCount += 2. Most guides and resources, including the C++ Core Guidelines, recommend avoiding Hungarian notation in most circumstances.
Hungarian notation should only be used for static, global, or member variables. Prefixing a variable name with s_, g_, or m_ is preferred in those instances to prevent variable shadowing and naming conflicts.
Additional information about Hungarian prefixes (includes interactive examples)