3

Is a long 128 bits on a 64 bit machine?

Edit: Duplicate question; see sizeof(int) on x64?.

Community
  • 1
  • 1
Ted Smith
  • 9,217
  • 16
  • 49
  • 52
  • Duplicate question. Good answers here: http://stackoverflow.com/questions/651956/sizeofint-on-x64 – andleer Mar 18 '09 at 22:40

4 Answers4

10

On both 32-bit and 64-bit machines:

  • long is 64-bit, it's a synonym for System.Int64.
  • int is 32-bit, it's a synonym for System.Int32.
Michael Damatov
  • 14,583
  • 10
  • 44
  • 70
1

Nope ... 64 bits

RedBlueThing
  • 40,938
  • 17
  • 97
  • 122
1

long.MinValue and long.MaxValue are your friend

1

Scott Hanselman put together a good summary of 32 vs 64 bit issues with .Net.

You can find the post here.

ScottS
  • 8,305
  • 3
  • 27
  • 50