compound assignment operatorsapart from the


Compound Assignment Operators

Apart from the binary and the unary arithmetic operators, we also have compound assignment operators. These are +=, -=, *=, /=, %=. Using these operators, the expression

                x = x + 5;

can also be written as

                x += 5;

This helps in writing compact code.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: compound assignment operatorsapart from the
Reference No:- TGS0309238

Expected delivery within 24 Hours