Home > DeveloperSection > Interviews > I need to know about the difference of int,int16,int 32 and int64 other than its size?

Posted on    May-26-2012 6:07 AM

 1 Answer(s)
  2161  View(s)
Rate this:

John Smith

Total Post:16

Posted on    May-26-2012 12:00 AM

The only real difference here is the size. All of the int types here are signed integer values which have varying sizes

  • Int16: 2 bytes
  • Int32 and int: 4 bytes
  • Int64 : 8 bytes

There is one small difference between Int64 and the rest. On a 32 bit platform assignments to an Int64 storage location are not guaranteed to be atomic. It is guaranteed for all of the other types.

Don't want to miss updates? Please click the below button!

Follow MindStick