What is the actual difference between a long and an int in C#? I understand that in C/C++ long would be 64bit on some 64bit platforms(depending on OS o
long
int
In C#, an int is a System.Int32 and a long is a System.Int64; the former is 32-bits and the later 64-bits.
System.Int32
System.Int64
C++ only provides vague guarantees about the size of int/long, in comparison (you can dig through the C++ standard for the exact, gory, details).