yoxiqy yoxiqy
  • 10-09-2017
  • Computers and Technology
contestada

Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7;

Respuesta :

kaevras
kaevras kaevras
  • 10-09-2017
That's correct.

Same goes for -=  *=  and  /=

It essentially just means "Do this, to this variable".


sum += 7  "Add 7 to sum"
result *= 10  "Multiply result by 10"
So on, and so forth.
Answer Link

Otras preguntas

What is the name of the piece above?
Now, write a short paragraph (with at least four sentences) that summarizes the challenges faced by Asian immigrants in the early 1900s.
Read the sentences. Immigrants often settled in cities. The cities were home to industry. Which sentence combines the sentences by inserting a word? Immigrants
How to refill birth control without doctor longmont co
Plzzzzzzzzzzz helppppppp
1. What happens to the carbon dioxide produced by cellular respiration?
What is the capital of prince edward island
Which expression is equivalent to 6x+8?
Analyze the diagram below. Which statements regarding the diagram are correct? Check all that apply ST_ST by the reflexive property ZRWS & ZUWT because they
Which statement correctly compares and contrasts the information represented by the chemical formula and model of a compound? Both show how the atoms in a compo