Variables and String data type

Variables and Data Types

What are they?

Data types specify the type of data that you work with in a programme. The data type defines the size of memory needed to store the data and the kinds of operations that can be performed on the data.

Syntax for variables in C#

To create a variable, we need

  1. a data type,
  2. a name for our variable
  3. and then assign a value to it.