0
y do we have int, int16, int32, and int64
i just dont get it. plz answer as simple as posible
3 odpowiedzi
+ 1
The number you can save in int16 is bigger than the number you can save in int. As the number after int rises the length of the number you save rises. Int16 is 16 bit, int32 is 32 bit and int64 is 64 bit.
+ 1
their defferent is the max value that they can hold. and i think int64 use more RAM.
the default int we use is int32 untill we are sure the number we use is always smaller or bigger than int32 size.
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)
0
They all differ in the MAXIMUM VALUE that they,can hold.
like,
Int32 can hold bigger number that Int16.
Hope this is what you need.