0

I cannot understand the role of the line "AddOneTo(x)" here.

8th Aug 2016, 7:14 PM
Emad Taheri
Emad Taheri - avatar
4 Respostas
+ 1
your basically adding one to your factor thats in the ( ). how it works, idk.
8th Aug 2016, 8:25 PM
Aquarius
Aquarius - avatar
0
you run the void AddOneTo(); and you take the variable x to make it work with the integer number that equals. So when you run AddOneTo(x); you run this void with the variable x and this integer increments by 1.
14th Aug 2016, 9:22 PM
Roger Roca Vallmajó
Roger Roca Vallmajó - avatar
0
so why doesnt it print the incremented value, is it predefined that values will not be incremented and if it is why is it so?
27th Sep 2016, 4:07 AM
Abhishek Yadav
Abhishek Yadav - avatar
0
When I read it, I thought it would take 5 and add 1 to give you 6
11th Oct 2016, 8:59 AM
realdudevision
realdudevision - avatar