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 are the constants in the expression below? Select three options. 12+x-3.7-8y+1/3 -8 -3.7 1/3 x 12
(15 points) The points A, B, and C lie on a line so that AB = 12 cm and BC = 13.5 cm. Find the length of segment AC . Give all possible answers.
If f(a) = b, then f^-1(b)=
What role did the Western Church play in inciting the Crusades?
If 5ex = 300, x = A) ln (300) = 5.703 . . . B) 5 ln (60) = 20.471 . . . C) ln (300)∕5 = 1.140 . . . D) ln (60) = 4.094 . . .
helpppp plsssssssss !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ED OR ING PLEASE HELP AYUDAA ED O ING
What are the verter and x-intercepts of the graph of the function given below? y=x2-2x-35
What type of programming language would this be?
A factory has a machine which bends wire at a rate of 9 unit(s) of curvature per second. How long does it take to bend a straight wire into a circle of radius 2