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
2 Answers
+ 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