2078 5

BIT153 ยท 2078 ยท 5 marks

Explain Call by Value and Call by Reference with appropriate example.

Explain Call by Value and Call by Reference with appropriate example. [5]

Object Oriented ProgrammingChapter 4: Pointers, References, and Memory ManagementCall by value and call by reference

In Call by Value, a copy of the actual argument is passed to the formal parameter of the function. Any changes made to the formal parameter inside the function do not affect the original (actual) argument. - The actual and formal parameters occupy separate memory locations. - It is the default me...