int32 vs int64 code example
Example 1: Int64
sbyte value1 = 124;
short value2 = 1618;
int value3 = Int32.MaxValue;
long number1 = value1;
long number2 = value2;
long number3 = value3;
Example 2: difference between int32 and int64
Their values range
Int16 -- (-32,768 to +32,767)
Int32 -- (-2,147,483,648 to +2,147,483,647)
Int64 -- (-9,223,372,036,854,775,808 to +9,223,372,036,854,775,807)
Example 3: int32 vs int64
Int32 and Int64 are defined by their names. Int32 is a signed, thirty-two byte integer value (4 bytes), and an int64 is a signed, sixty-four bit integer value (8 bytes). Int32 has a min/max of 2.147 billion and int64 has a min/max of 9223 with a lot of zeroes