c++ program of Short-Hand Assignment Operator


Short-Hand Assignment Operator in c++ same work as in C language

shorthand assignment operator it is a combination of Arithmetic and assignment operator to reduce the time and easy work for programmer.

simple statement a= a +10 Using shorthand assignment its write as a+=10

 

 

Output :

Original Value is  =: 2

+= Operator  =:4

-= Operator  =:2

*= Operator =:4

/= Operator =:2

%= Operator =:0

^= Operator =:0

|= Operator =:2

(Visited 63 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image