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’s the key signature for Gavotte??
what is the area of the square
According to the passage, which benefits do dental sealants provide? Check all that apply tooth whitening a protection against bacteria painless tooth decay pre
Please Assist With This:Today's Beginning Balance: $42.69You went shopping with friends today and bought noisy party favors for your Fourth of July party. You w
I don’t understand this question please help
Albert Einstein published his first paper at the age of _____.
a pocket veto occurs when?​
Identify the compound with polar covalent bonding. identify the compound with polar covalent bonding. ar nh3 k kf h2
Select the correct pairing of an event with its effect on the Earth's surface. A. flood: a rock mass sliding down a mountainside onto the Earth's crust B.
Spanish, 1 Dibujo en la clase de____2 ¿Qué clase ____en la primera hora?3 Son las doce. Tengo el ____4 La Sra. Gómez _____ español en la primera, segunda y cuar