Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Compound Assignment Operator | Introduction to Operators
C++ Introduction

Compound Assignment OperatorCompound Assignment Operator

A compound assignment operator is a combined operator that combines an assignment operator and an arithmetic (or a bitwise) operator. The result of such an operation is assigned to the left operand (what is before the = sign).

Click👇
cpp

main.cpp

Using another compound assignment operator:

cpp

main.cpp

Все було зрозуміло?

Секція 3. Розділ 4
course content

Зміст курсу

C++ Introduction

Compound Assignment OperatorCompound Assignment Operator

A compound assignment operator is a combined operator that combines an assignment operator and an arithmetic (or a bitwise) operator. The result of such an operation is assigned to the left operand (what is before the = sign).

Click👇
cpp

main.cpp

Using another compound assignment operator:

cpp

main.cpp

Все було зрозуміло?

Секція 3. Розділ 4
some-alt