Jump to content

Assignment statement

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bluebot (talk | contribs) at 12:53, 29 March 2006 (bold formatting title and added stub tag using AWB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 .

C++ Example:

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