Skip to main content
To Get All Information of Sarkari Jobs | Results | Admit Card | And courses ,Internships then CLICK HERE

Compound Assignment Operator-:


 Compound Assignment Operator is the combination of arithmetic operator and assignment operator.The possible compound assignment operator are as follow-:
(a-) + =         
=>  a+=b;   this statement equals to a=a+b.
(b-) -  =
=> a-=b;     this statement equals to a=a-b. 
(c-) *  =
=> a*=b;    this statement equals to a=a*b.
(d-) /  = 
=> a/=b;     this statement equals to a=a/b.
(e-) % =
=> a%=b;    this statement equals to a=a%b.  
Example-:
7+=2   => 7+2=9
8-=4    => 8-4=4
3*=2   =>  3*2=6
5/=2    => 5/2=2
16%=3 => 16%3=1
ads Watch The Video Below


Comments

Post a Comment

Please do not enter any spam link in the comment box.


Download The Book "Let Us C" By Yashavant P.Kanetkar,Click The Below Button

-->Email Subscription

Enter Your Email Address:-

Delivered by FeedBurner

Copyright © 2020 TechProgramiz|All Right Reserved|Made By-: Sudarshan Pandey