Pass by Value in Functions

Learn a way to pass the value of actual parameters to the function.

Introduction

Suppose you have sent an email with an attached file to your friend. Your friend has downloaded the file and then made some changes to it. The original document can not be changed by any of the changes made by your friend because your friend has a copy of the original file.

Pass by value is just like sending a copy of a file to another person.

Get hands-on with 1200+ tech skills courses.