---
title: "I need to know about the difference of int,int16,int 32 and int64 other than its size?"  
description: "I need to know about the difference of int,int16,int 32 and int64 other than its size?"  
author: "John Smith"  
published: 2012-05-26  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1469/i-need-to-know-about-the-difference-of-int-int16-int-32-and-int64-other-than-its-size  
category: "c#"  
tags: ["int16", "int32", "int64", "mindstick", "interview question"]  
reading_time: 1 minute  

---

# 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.

## Answers

### Answer by John Smith

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.


---

Original Source: https://www.mindstick.com/interview/1469/i-need-to-know-about-the-difference-of-int-int16-int-32-and-int64-other-than-its-size

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
