tags:

views:

212

answers:

5

Is a long 128 bits on a 64 bit machine?

Edit: Duplicate question; see http://stackoverflow.com/questions/651956/sizeofint-on-x64.

+1  A: 

Nope ... 64 bits

Cannonade
+8  A: 

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
+3  A: 

Duplicate question. Good answers here:

http://stackoverflow.com/questions/651956/sizeofint-on-x64

Andrew Robinson
+1  A: 

long.MinValue and long.MaxValue are your friend

A: 

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

You can find the post here.

ScottS