For either List with n elements, which (if any) requires more storage on x64 machine:
List<int>
-or-
List<long>
I guess the question can be rephrased as:
On x64, does an int take any less space than a long?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
intkeyword is an alias for theSystem.Int32type which is always 32 bits wide, regardless of platform. Likewise, thelongkeyword is an alias for theSystem.Int64type which is always 64 bits wide, regardless of platform.