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

How many grams of oxygen are required to react with 10.0 grams of octane (C8H18) in the combustion of octane in gasoline?
A group of friends chat about the latest trends. passive oor active?
Which of the following definitions applies to permafrost? A. A long, narrow, deep inlet of the sea between steep slopes. B. Permanently frozen subsoil, occurr
Rome was protected from invasion from the east by the: Alps Apennines Himalayas
A community needs to raise at least 5,000
Sikhism is a blend of what two religions
how many parts does the Declaration of Independece have?
When was the steam engine invented by james watt?
Rome became one of the greatest civilizations in history. Which of the following is true of the Empire at its height. i. the economy was booming ii. they had a
The unconformity is located at the boundary between Middle Proterozoic rock and Late Cambrian and Early Ordovician rock. Identify by name the oldest New York St