Programs
General

Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
An assignment writes a variable with a value. The variable to be written is called the destination, and the value to write is called the source.

- Destination
- Source

In this example, the value at a is written to x.

`x = a`

The destination of an assignment is a variable, or an expression that results in a variable. For example, `a`

, `b[2]`

and `c.d`

results in variables, but `a+1`

and `f(x)`

does not.

The source of an assignment is an expression that results in either a variable or a value. If the result is a variable, then the value of the variable is taken as the source.

When a variable of data structure type or array type is assigned, a reference is copied. When another value is assigned it is copied.

We would be more than happy to help you. Our opening hours are 9–15 (CET).

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.