Assignment statement: Difference between revisions

Content deleted Content added
La3toot (talk | contribs)
No edit summary
 
m Bot: Fixing double redirect to Assignment (computer science)
 
(6 intermediate revisions by 5 users not shown)
Line 1:
#REDIRECT [[Assignment (computer science)]]
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