What is the difference between x++ and ++x in c++ programing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between x++ and ++x in c++ programing

What is the difference between x++ and ++x in c++

14th Sep 2020, 1:37 PM
Roopesh. N
Roopesh. N - avatar
1 Answer
+ 6
Roopesh. N ++x means first increase the value of x by 1 and then use it. whereas x++ means first use the value of x and then increment it's value by 1
14th Sep 2020, 1:39 PM
‎Ashwin Maurya
‎Ashwin Maurya - avatar