3.1.Variables and Types #

Variables” are simply storage locations for data. You can place data into them and retrieve their contents as part of a C# expression.
The C# simple types consist of the Boolean type and three numeric types

  • ¬†Integrals
  • Floating Point and¬†Decimal
  • String.

The term “Integrals”, which is defined in the C# Programming Language Specification, refers to the classification of types that include sbyte, byte, short, ushort, int, uint, long, ulong, and char.

The term “Floating Point” refers to the float and double types.

The string type represents a string of characters

The next section introduces the boolean type.

Suggest Edit