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

Find the length of side x in simplest radical form with a rational denominator.
Which of the five themes of geography would a person most likely use to study the importation of Chinese goods into the United States? A. places and regions B.
WHERE THE SMART PEOPLE AT??????PLEASE I NEED HELPTHIS IS MY LAST QUESTION FOR THE TESTPLEASEI KNOW THE ANSWER IM JUST MAKING SUREYou can use tables for layout w
question is in photo
Please help me answer this question i am having trouble
how are electrons arranged in molecules of compounds?​
What kind of change in personality develops in adolescence? ​
Carlos is creating clay at home for an art project. The recipe calls for 8 cups of water and 5.5 cups of flour. Carlos would like to make more clay than the re
Describe atleast three types of activities you could do to learn more about a particular career
8 * 1000000 + 8 * 1/1000000 = ? Please answer quick!