emilysawyer6674 emilysawyer6674
  • 04-07-2019
  • Computers and Technology
contestada

Explain the difference between the prefix and postfix forms of the increment operator.

Respuesta :

SerenaBochenek SerenaBochenek
  • 14-07-2019

Answer:

The prefix form of increment operator is ++a, for the variable a.

  • it first increments the value of the variable and substitutes the incremented value of the variable to the expression.

The postfix form of increment operator is a++, for the variable a.

  • it substitutes the existing value of the variable to the expression and then increments the value.

Explanation:

Let a = 6.

++a + 5 = 12.

but

a++ + 5 =11.

Answer Link

Otras preguntas

ten people are in a club and three are going to be on the “planning committee”. how many different groups of three people are possible?
To save money for a sabbatical to earn a master’s degree, you deposit $2000 at the end of each year in an annuity that pays 7.5% compounded annually. a) How muc
what are the tests performed in alcoholic patients before oral surgery
2x+5y=20 in slope intercept form
Question 18(Multiple Choice Worth 1 points) Using the given zero, find all other zeros of f(x). -2i is a zero of f(x) = x4 - 45x2 - 196
Colby’s dog was running in the park with a speed of 28 m/s. If is dog had 6000 J of kinetic energy, find his dog’s mass.
The question says “write with prime number base” and the question is 8 square root 32 (7,d)
what is the purpose of pre-writing in the writing process
How would you explain what Civil Rights are?
PLZZZ HELP ME QUICKLY !!!