I NEED TO KNOW ABOUT THE DIFFERENCE OF INT,INT16,INT 32 AND INT64 OTHER THAN ITS SIZE?

John Smith

Total Post:16

Points:80
Posted by  John Smith
C#
 2447  View(s)
Ratings:
Rate this:
  1. John Smith

    Post:16

    Points:80
    I need to know about the difference of int,int16,int 32 and int64 other than its size?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!