Assignment
Appearance
In computer programming, an assignment is the defining of a variable. In C++ and many other languages, a variable must first be declared before assignment.
int x=10;
In this sample C++ code segment, the variable x is first declared as an int, and is then assigned the value of 10.
Languages such as Perl do not require variables to be declared before an assignment is made.