Hi everyone! i am a totally newb in computer programming.
I had tried to run the c++ code below. After i run it, it showed that the y is 5 after the 1st time the function is called but y is 7 after the 2nd time the function is called.
Would someone explain why "y" is different in the first and second time please!? and also........what is the "return x;" at the end actually does!?
(Please explain in a very simple way because i really don`t know anything about c++)