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 55÷11+7×(2+14
your family plays no part in your self esteem
The development of nation-states began
Use a calculator to find each answer. Round to the nearest tenth. 1.) 8392-(530+239) 2.) (984.2 - 845) ÷5 3.) (1000÷14.6) +8.4 4.) (8392-530) + 539
The bird house in your friend's yard casts a shadow that is 14 feet long. Your friend is 5 feet tall and casts a shadow that is 3.5 feet long. What is the heigh
N the feudal system, a land grant was called a a. feud. b. fief. c. vassal. d. manor.
cuál es el adjetivo de el pantalón con rotos
which is bigger 1/7 of 14 or half of 36
Describe two examples of steroids. For Each example, describe its physiological function
What is the correct procedure for students to follow if a chemical is spilled?