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

what is 12,430,090 in expanded form
91,007,500 in scientific notation with positive powers of 10
Where are genes located?
Which statement is true? 500 is 10 times as much as 50 500 is one tenth as much as 50
25% of 88 is the same as what percent of 22? 1) 12 1/2% 2)40% 3) 50% 4) 100%
A bus on a regular schedule takes 3 1/4 hours to reach its destination. The express bus takes 2 1/2 hours to make the same trip. How much travel time can be sa
Brandon owns nearly 2 times as many CDs ads Ingrid. Brandon owns 56 CDs. Write an equation and use it to estimate the number n of CDs Ingrid owns.
The fastest a human has ever run is 27 miles per hour. How many miles per minute did the human run?
Can someone tell me the answer for 18-7÷0
If a line has no y-intercept, what can you say about the line?