Assignment statement is a statement where a destination is assigned a specific value , mostly copied from a source , where the source can be either a variable , a constant or any other . The term statement can have several meanings: In programming, a statement is an instruction to execute something that will not return a value. ... In computer science and mathematics, a variable (sometimes called a pronumeral) is a symbol denoting a quantity or symbolic representation. ... In mathematics and the mathematical sciences, a constant is a fixed, but possibly unspecified, value. ...
C++ Example: C++ (generally pronounced see plus plus) is a general-purpose programming language. ...
int x , y ; y = 5 ; //y is assigned a value of a constant , 5 x = y ; //x is assigned a value of a variable , y