answersLogoWhite

0


Best Answer

To increment a value by 1, you have 4 choices:

  • value++;
  • ++value;
  • value += 1;
  • value = value + 1;

Pre and post processing incrementation/decrementation refers to the first two: ++value and value++.

Both do exactly the same, as both will increase the value of 'value' by one.

If we have a situation like this:

int value = 0;

int value1 = 0;

value1 = value++;

This essentially means:

value1 = value;

value = value + 1;

Where ++value means:

value = value + 1;

value1 = value;

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between pre and post processing incrementation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions