In C#, According to the type of the data and size of the data, data types are classified into five types. They are:
- Numerical Data types
- Signed numerical: sbyte, short, int, long
- Unsigned Numerical: byte, ushort, uint, ulong
- Floating float, double, decimal
- Character related Data types
- Char
- Logical Data Types
- Bool
- General data types
- String
- Object
They are called primitive because they are the main built-in types, and could be used to build other data types. The most famous primitive data types are: int, string, object, short, char, float, double, char, bool.
[amazon_link asins=’007070368X,1787287041,1788478924,9351343189,8120349172,9351190900,8120352068,B016Z18MLG,9351103536|1840787198,1518800270,0985580135,1119449278,161729134X,1484230175,1491988533,1119428114,1491987650′ template=’ProductCarousel’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’86b30989-8f3c-11e8-9aae-816eac152c88′]