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 54 times 3 times 71 minus 45 plus 102 divided by 6 times 25 subtracted by 34 times 141 plus 32 subtracted by 67? Also put 578402/10856 in simplest form.
You are given an aqueous solution of NaCl. The simplest method for the separation of NaCl from the solution is (A) evaporation of the solution to dryness (B) c
How many “dots” would be around the central atom in the Lewis structure of S? A) 5 B) 6 C) 7 D) 4
need help with this question#20
How many hydrogen atoms are represented in the formula (CH3)2CH2?
differentiate benzene and cyclohexane
4x^2-28x+49=5 solve the quadratic by completing the square
I need help with the blanks
What caused Portugal to finallywithdraw from its African colonies?
What energy is transfomed that takes place you lifting a chair?