Variable Syntax

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

We'll cover the following

Declaring variables

Declaring variables is easy just <variable_type> <variable_name>.

Let’s say you want to declare an integer.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy