17th Nov 2017, 11:01 AM
Elia Garas
3 Answers
+ 2
-- before and after variable change the value by -1.the diffrence is, that when you put it before it will change variable immidietly and cout method will print the new value. if you put it after variable it will delay changing the value to after method is done, so cout mwthod will print old value and then the value of variable will change
17th Nov 2017, 11:51 AM
Bartek Nowacki
Bartek Nowacki - avatar
17th Nov 2017, 1:37 PM
Nanda Balakrishnan