For Example int and INT. About this two i just know int is the fundamental type and INT is windows data type both gain 4 bytes in memory and INT is use with window API.
But i don't understand what is the major and proper different between both of them.
Help me to understand this both fully?
intis a language keyword,INTis not.The size and range of values that an
intcan take is constrained, but not fixed, by the C++ standard.INTis a data type defined by Windows that is a 4 byte signed integral type with 2's complement.With a MSVC compiler targetting Windows, it is probably
typedeffed or#defined toint, sinceintin that case has the required characteristics.Using
std::int32_twould be preferable as it's multiplatform, although a compiler does not have to support it.