SECJ1013-02 Programming Technique I

Pass by value

Introduction

Pass by value is when an argument is passed to a function, the value will be copied into the parameter. The changes made to the parameter in the function do not affect the argument value.

Chapter 4

                                                 Figure 1: example of pass by value

File(s) to download