Home > Articles > Programming > C#

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

C# Data Types

You know how to declare, initialize, and change the values of variables; it is important that you know the data types you can use. You learned earlier that you have to declare the data type when you declare a variable. You've seen that the int keyword declares variables that can hold integers. An integer is simply a whole number that doesn't contain a fractional or decimal portion. The variables you've declared to this point hold only integers. What if you want to store other types of data, such as decimals or characters?

  • + Share This
  • 🔖 Save To Your Account