0

Plz help me why and how sum+= is used?

9th Jun 2017, 1:49 AM
Rhytham Natesan
Rhytham Natesan - avatar
4 Answers
+ 2
sum+=xyz is normally used as a shorthand for sum = sum + xyz. what do you want to know?
9th Jun 2017, 2:02 AM
Venkatesh Pitta
Venkatesh Pitta - avatar
+ 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.
9th Jun 2017, 2:49 AM
Venkatesh Pitta
Venkatesh Pitta - avatar
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
9th Jun 2017, 2:18 AM
Rhytham Natesan
Rhytham Natesan - avatar
0
thnx bro
9th Jun 2017, 3:08 AM
Rhytham Natesan
Rhytham Natesan - avatar