Hey, guys, what's up?
So in this session, we will try to understand the difference between.
Forced.
Three incrementing diclemente.
OK, so suppose I am having a equals one.
So if I write a equals A plus one, the value of A will be incremented by one.
We have seen this in flowchart and sort of to the valley of AVL.
We incremented to one.
OK.
Now, instead of writing equals eight plus one, I can also write the A plus.
Plus they both same.
OK.
They both tie same.
So.
Let's see.
So let's name it forced entry post pre.
So suppose I am having and a close one.
So a variable and and the value of that variable is initialized to one.
Now I'm inheriting including the value OWFI by one.
OK.
And now I am printing the value OWFI.
So what should be my output, output should be to.
So, too, is getting printed.
No doubt.
OK, so this is called.
Post agreement.
It is just incrementing the value of eBay.
Well, knowledge commanded out.
Now I am keeping everything same.
Breeding agreement.
So instead of writing E-Plus Plus plus, what I'm gonna do is I will write plus Plessey.
OK, so this is the only change here, it was Iblis place.
Now it is plus pressie.
So what should be my output?
So the output is again.
OK, so the output is again to.
So when I was writing E-Plus plus, then also the value offie was to.
And when I am writing plus Plessey, then also the value OWFI becomes too.
I'm calling it Post Incremented and I'm calling it Brene Agreement.
And this in so I there are two different names.
So there must be some defense.
OK, so there must be some difference between E-Plus Bless and Bless Plessey.
And in this video, we will try to understand what is the difference.
OK, so let's see.
So also commented out.
Now, let's see what is their defense.
So I am taking to variable A and X.
So suppose the value of A's when.
OK, so the value of phase one.
Now I am writing X equals E plus plus and now we will print the value of X entity.
So C O takes and line C out a line.
OK.
So what will be my output.
Let's see.
So the value of X is one and the value of A's to.
Lancy Visored, so.
So initially, the Valium phase one.
And I am writing X equals a plus plus.
So what is happening here?
This thing is called Borst Increment.
So in Boston and what will happen first?
I will assign the value of a.
And then I will incremented the Valy Elfie.
OK.
So when you're writing X, it was a plus plus.
First, the Vendee of A is assigned to X and then the value of A is incremented.
That's why it is called Borst.
Boasting limited means, first I sign, then increment.
And that is the reason the value of X equals Iblis place.
So first the value of AIZMAN.
Since that is assigned to X, that's why the value of X will become one and then the value of it will
be incremented.
So the value of it will become, too.
Okay.
So that's why I hear my output was one.
And in this line, my output was to.
Now, let's see what will happen in case of increment.
So condole see?
Condole Gandolfi.
Instead of riding a plus plus murder, I really do.
I will ride.
Bless Plessey.
And let's Commander Daoud.
So let's see.
Here you can see the value of X is too, and the value of Faisal also Sorto, in previous case, the
value of X was one.
Now, what is happening here?
So, ex.
It was Bless Bless a.
It is called pre increment plus Plessey is called Reimplement.
It will do the opposite.
First it will increment.
Then assign.
OK.
So this statement will be evaluated first.
First, the value of a will be incremented and then the value fee will be assigned.
So fast it will become two and then X equals eight, which is two.
That is the reason hair.
My output is two and two.
So I hope the difference between post and being made is clear.
OK, so being agreement means first you're doing Kliment and then you do the assignment.
And in case of post increment, first you assign and then you increment.
OK.
So first you will assign and then you will do the increment.
But in this case, first you will do the increment and then you will assign.
OK, so the difference between post and bring him on this clear.
Now the same thing happens with Post and Beauty Clement Desmond.
So I'm copying this part.
Condole, see?
Candlewick.
So head of a little phase one now in knowing gives off.
Now I am diclemente angered.
OK, so a minus minus eight minus minus means decrease the value of a bye.
When.
Equals eight plus one and a plus plus they both seem similarly equals A minus one and E minus minus.
They both also seem OK.
So it is pre the kliment sorry, it is post degremont.
Post.
Degremont.
So the value of Aizman now, the value of a is decrescendo by one for the new Vello will become zero.
And then you are printing zero.
In this case also.
So first, let Lidstrom this part.
So now Edwards coming out with zero as expected.
Now let's comment out this part.
And we will run this part.
So the only change Naadam I'm gonna do is minus minus a hair.
It was a minus minus.
Now it is minus minus.
And it is really Kliment.
Okay, so what will happen?
The value of Aizman, the value of it will relate remaindered.
Now the new relevé will become zero as it was getting printed.
OK.
Zero.
So when I was writing a minus minus.
Then also my output was zero.
And my when when I am writing minus minus say they don't amount to zero.
But I'm calling it does bolster decrement.
And I calling it days predicament.
So there should be some defense and the defenses, same as we saw in a blessed, blessed and blessed
blessing.
OK, so let's see.
I will copy this part and don't see.
Now equals one.
What I will do.
I will write a minus minus.
OK.
So let's send it.
So the value of X is one and the value of phase zero as expected.
So initially, the value of is when and then you are writing X equals a minus minus, which is both
to the agreement post means first you will assign the value.
Now the value of X equals one.
And then you we decrease the value.
So the value of phase zero.
You can see here the value of X is one and the value of A's zero.
So this was boaster decrement.
OK.
So this was post the agreement.
Now, let's see predicament.
So last year of our doing plus policy, minus minus.
So hatred was a minus minus.
Here it is, minus minus he.
So the value of X and a bow tie.
Zero.
Why?
It is bleeding, Kliment.
So initially, the value of phase one.
Then X, it was minus minus E.
So since it is pretty agreement, first I will decrease the value of A becomes zero and then I will
assign.
Hence exs also zero.
And that's why water.
Zero.
OK, so this was through the Cleveland.
So I hope the picture is clear.
So I hope now you're not the difference between a plus press and less blasé.
A minus, minus and minus minus.
They both had increasing the value by one.
And they both had decreasing the value.
They both are decreasing the value by one.
This is posed.
This is pre.
Similarly, this is post.
This is the post means first.
You assign and then you increment or decrease.
Three means.
First, you increase or decrease.
And then you assign.
OK.
So this is the basic difference between post and pre.
Thank you.