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

Name three complimentary adjectives that describe one of your friends
what is a possible consequence of abusing intravenous drugs such as heroin?
Select Equal or Not Equal to correctly classify each statement. −6÷3=?3÷(−6) −8⋅9=?9⋅(−8)
What is the Grand slam of 5/8 and 3/10
Joan wants to add a new entry at the bottom of her spreadsheet. what is the shortcut that will take her to the last record on her spreadsheet
show two ways three people can share a 5 segment chewy fruit worm
how does zaroffs attitude advance the plot of this passage A) because zaroff's devalues live, he is bored with his own life B) since zaroff's sees rainsford a
a block of copper weighs 2160g and has a volume of 240cm cubed. what is the density of the copper?
The point (-5, ) lies on the graph of the cubing function.
Which statement is most likely true? Subduction occurs in both locations. Seafloor spreading occurs in both locations. The magnetic orientation of rocks may
good job