0
Plz help me why and how sum+= is used?
4 Answers
+ 2
sum+=xyz is normally used as a shorthand for sum = sum + xyz.
what do you want to know?
+ 2
it is used whenever some variable needs to be incremented by more than 1 or by one or more other values. that is for numerical types.
where += is overloaded, you best consult the source code.
0
I want to know how this is used in a program I know what it mean but How and when it can be used in program ,can you tell me?thankyiu
0
thnx bro