Variables in C++
Learn how to declare and initialize variables in C++.
We'll cover the following
Variable declaration #
A variable declaration means that we want the compiler to reserve a space for a data with the given name and type.
The basic syntax for declaring a variable in C++ is:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy