Different types of data types in C# or C sharp?

All QuestionsCategory: C#_languageDifferent types of data types in C# or C sharp?
Chetan Shidling asked 4 years ago

I need short information.

1 Answers
Chetan Shidling answered 4 years ago

The different types of data types in C# are:

  1. int – the size of 4 bytes.
  2. long – the size of 8 bytes.
  3. float – the size of 4 bytes.
  4. double – the size of 8 bytes.
  5. bool – 1-bit
  6. char – 2 bytes
  7. string – 2 bytes per character