C++ - Variable

Variable is used for storing the data. can be declared in different locations and can be used in different locations. it can be distinguished according to the lifetime: they are global or local static variables. it is possible use in the structure or function.

Declaration

variable declaration Variable declaration is used for its creation.

type name

Use

variable use Using variables, you can access the data stored in a variable, can be used to store or retrieve the value.

name