As I understand it, usually the type integer weighs 4 bytes, including unsigned integer . But there are cases where, depending on the bitness of the processor, an integer can have both 2 bytes and 8. I don’t understand how the bit affects the size of the integer type and what it changes for the developer except that it can accommodate a wider range of numbers (or less) ?
UPD
What does it mean to translate a program from x32 to x64 ? Roughly speaking, is it using x64 types? If I understand correctly, the reason why a program written under x64 will not work on x32 , is this a memory overhead in data types? Why, then, can we allow in Visual Studio to choose under what bitness to do build ? How will this affect the size of the program itself and the size that ordinary data types will take?
