Reality Pekingese

Surrogacy is located in Beijing, is a professional surrogate agency center, add a formal surrogacy in Beijing: ██╇ micro-channel: 138 ★ 0226 ★ 9370╇██ mainly engaged in Beijing surrogate agency and surrogacy services and care, Beijing rational generation of maternal child price and strict the surrogacy process

= C #, + means: addition assignment operator. It represents a value of the left and right sides of the first symbol for the + operator, both obtained and then assigned to Symbol left. For example: a + = b, is equivalent to a = a + b.

Code Title involved in:
INTVAL1. 11 =

INTVAL2 = 10

INTVAL1 + = INTVAL2

Result of performing operations of: INTVAL1 value of 21, INTVAL2 is 10


Extended Information:
. 1, the C # - = operator:

C #, - = meaning: subtraction assignment operator. It represents a value of the left and right sides of the symbol to be - operation, obtaining the difference between the two, and then assigned to Symbol left. For example: a - = b, is equivalent to a = a - b.

Code samples:

INTVAL1 = 11

= 10 INTVAL2
INTVAL1 - = INTVAL2
final operation result is: INTVAL1 = 1, INTVAL2 = 10

 

2, C # operator binding in

When the expression of two or more occurred with the same priority operators, are calculated according to the binding. Left binding operator computes from left to right. For example, x * y / z calculated as (x * y) / z. Press the right-associative operator is calculated from right to left. For example, the assignment operator is associated with the right. If not, the following code will cause an error.

int a, b, c;

c = 1;

// The following two lines are equivalent

a = b = c;

a = (b = c);

Guess you like

Origin www.cnblogs.com/shenzhendaiyun/p/12144131.html