Visual C++ - Assignment: =

The assignment operator is used to assign a value to a variable. it can be used for any data type with the only condition that the first parameter (left side) must be a value receiver, for example a variable. depending on the programming language can be different terms for the assignment of values to the variables, for example depending on the type.

=

Description

var =expression;
Used keywords: =

Input


Output

Examples

Visual C++ .NET

Assignment the possible of use:
x = 1.234;         // x = 1.234
y = x * 3.14;      // y = 3.87476
if (y<5)
   y = y/ 3.14;    // y = 1.234

Visual C++ .NET

Other pieces of example codes:
y = (unsigned long)(x * y);
x = 123 ^ 25;
y = x / 0.5;
ret = j<i;
y = (unsigned long long)(x * y);
y =(double)(x * y);
Languages: en hu cz sk