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

19. True or False: Families are more likely to participate in community activities when they feel connected to the community. In a disaster, this may translate
Which is more acidic among the following?​
Which of the following are examples of single replacement reactions? Select all that apply.
What is x+y Explain your answer
What happens to the median of the data set {2, 4, 5, 6, 8, 2, 5, 6} if the number 10 is added to the data set? A. The median does not change. B. The median in
explain five features of the colonial nigeria constitution​
Please help chemistry ASAP Will give brainly
Two truck leave a factory at a sametime.one travel east at 60 miles per hour and other went 30 miles per hour. In how many hour will they be 150 miles apart ?
What is 73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73+73=
Khẳng định: “Mọi chủ nợ của doanh nghiệp , Hợp tác xã đều có quyền nộp đơn yêu cầu tuyên bố doanh nghiệp phá sản khi nhận thấy doanh nghiệp rơi vào mất khả năng