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

The United Nations Educational, Scientific, and Cultural Organization (UNESCO) builds intercultural understanding by protecting heritages and supporting cultura
que necesitas para escuchar a las personas
When you multiply by an even number the product is even. true or false And why
Detail: By August _______________, Allied troops had liberated _______________, France.
What does that mean
Please help for the 3rd time and not the last time either (:
Please help me. I been stuck for over an hour
Do anybody know this answer if so help me please
what do you think President Jefferson did after the United states gianed so much land
The probability that Rahul succeeds at any given free-throw is 70%, percent. He was curious how many free-throws he can expect to succeed in a sample of 15 free