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 integer to -6+(-3)
The solution set of x^2 - 64 = O Is
In your persuasive essay, each reason that you give within the body should be followed by a. a restatement of your thesis. b. a counter-position to that reaso
Give two reasons why a scientist might want to remove DNA from an organism
Which of the following is a characteristic of a successful entrepreneur? A. Passion B. Popularity C. Wealth D. Experience
HELPWhy are compliance and enforcement procedures necessary?
A (5, 3), B (2, 1), and C (-2, 4) are the coordinates of a triangle's vertices. If the triangle is reflected over the x -axis, what are the coordinates of the i
Out of the 30 days in June, you run 13 days and swim 6 days. You lift weights 7 days and ride a bike 4 days. If you make a pie chart to show this data, how many
As president, franklin roosevelt made many trips to georgia for treatment for polio. which city was the site of his "little white house" in georgia?
A cross section is the intersection of a _ and _ a . A.solid A.Plane B.Point B.Line