+ 1
Need some help....
Ok, I have been learning C++ for a while and I got to say, I love it! I just canât grasp my knowledge on the prefix and postfix. Can someone like break it down and give me a good example. Not that Iâm saying that Sololearn is a poor teacher! Itâs actually teaches pretty good! I just need some help on the subject. Thanks for the help!
12 Respostas
+ 3
ElijahCombs23 that is what you call pre increment and post increment. This question is answered a lot of times on sololearn so you can go to Q&A Discussion and at the top most bar write the key words and you will find an answer.
+ 2
ElijahCombs23 Increment and decrement operators?
+ 1
thanks man!
+ 1
here is how I understood this:
if
int x=4
y= ++x (this means both x and y are incremented by 1 so x=5, y=5)
if
int x=4
y=x++ (this means only x is incremented by 1, and y gets old x value so x=5, y=4)
0
No, Prefix and Postfix you know.
X++ and ++X
0
well, you see, I donât really grasp the concept of them. like how they work.
0
Thanks man!
0
I need some help for making a bitscore code
0
How to find bitscore