The best way to do this is pass a parameter by reference to the function and allow the function to modify this variable. The variable in the main body of the program will then be modified accordingly. Mighty
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.