+ 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!

4th Nov 2019, 8:31 AM
ElijahCombs23
ElijahCombs23 - avatar
9 ответов
+ 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.
4th Nov 2019, 8:51 AM
Avinesh
Avinesh - avatar
+ 2
ElijahCombs23 Increment and decrement operators?
4th Nov 2019, 8:48 AM
Avinesh
Avinesh - avatar
+ 1
thanks man!
4th Nov 2019, 5:02 PM
ElijahCombs23
ElijahCombs23 - avatar
+ 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)
4th Nov 2019, 6:18 PM
Azra Sinanbasic
0
No, Prefix and Postfix you know. X++ and ++X
4th Nov 2019, 8:49 AM
ElijahCombs23
ElijahCombs23 - avatar
0
well, you see, I don’t really grasp the concept of them. like how they work.
4th Nov 2019, 12:47 PM
ElijahCombs23
ElijahCombs23 - avatar
0
Thanks man!
5th Nov 2019, 6:24 AM
ElijahCombs23
ElijahCombs23 - avatar
0
I need some help for making a bitscore code
5th Nov 2019, 2:17 PM
Aditya Farkya
0
How to find bitscore
5th Nov 2019, 2:29 PM
Aditya Farkya