Variable Syntax

This lesson briefly explains the method of declaring and initializing a variable in C#.

We'll cover the following

Declaration

The syntax for variable declaration goes like this:

<variable_type> <variable_name>;

Get hands-on with 1200+ tech skills courses.