C# supports the concept of unsigned and signed integer types. In this article we discuss about both types of integer datatypes:
Signed Integer type:
Signed integer
types can hold both positive and negative numbers, such as 23,-34 etc. . Tables
shows size and range of all four signed integer datatype. It should be
remembered that wider datatype require more time for manipulation and therefore
it is advisable to use smaller

Type | Size (Byte) | Min Value | Max Value | Declaration |
Sbyte | 1 | -128 | 127 | Sbyte X = 2; |
Short | 2 | -32768 | 32767 | Short X = -24656; |
Int | 4 | -2,147,483,648 | 2,147,483,647
| Int X = 4585213; |
Long | 8 | -9,223,372,036,854,775,808 | 9,223,372,036,854,775,807 | Long X = 7854295399514; |

Comments
Join the conversation! Your thoughts help the community grow.