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


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: C#_languageDifferent types of data types in C# or C sharp?
Chetan Shidling asked 6 years ago

I need short information.

1 Answers
Chetan Shidling answered 6 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