answersLogoWhite

0

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

13y ago

What else can I help you with?

Related Questions

What is the difference between pre gain and post gain in audio processing?

Pre-gain refers to adjusting the input level before it enters the processing chain, while post-gain involves adjusting the output level after processing has been applied.


What is difference between graduation and post graduation?

what is difference between graduate and post gruduate


What is the difference between post encephalitis and post meningitis?

Aurore


Difference between pre-tensioned and post-tensioned?

what a wicked page, really helpfull Difference between pre-tensioned and post-tensioned?


Pre indexing post indexing difference between?

what are the differents between preindexing and post indexing?


Difference between modernism and post modernism?

The difference between modernism and post modernism are the highlights and approaches towards life. It also differs in the ways of thinking that led to these movements.


What is the difference between preincrementing and post-incrementing a variable?

drem


What is the difference between a thread and post?

In computing terms - A 'thread' is a topic of discussion, and a 'post' is a response to the 'thread'.


What is the difference between pre-indexing and post-indexing?

what is pre-indexing


What is the difference between value and region?

Do you know? If so, edit this and post the answer!


What is difference between bank and post office?

A bank handles money and a post office handles letters and packages.


What is the difference between a post route and a flag route?

Post is towards the center of the field, flag is toward the sideline.