Jump to content

Assignment statement

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by La3toot (talk | contribs) at 12:44, 24 March 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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