Passing values to functions
- Politechnika Śląska
- Fundamentals of Computer Programming
Passing values to functions • All function arguments are passed ''by value'' • The called function gets a copy of arguments • If you really need to modify a variable in a calling routine: - pass a pointer to it - the function will modify this plac...