List Two Reasons Fo Q37194707

C language
a) List two reasons foa) List two reasons fo Show transcribed image text a) List two reasons fo


Answer


a) in the call by value method, the value of the actualparameters is copied into the formal parameters. so actualparameters and formal parameters get different memorylocations.

reasons to implement call by value method:

  1. when we don’t want to make changes in the actual parameters.for example: additon and subtraction of two numbers
  2. when we want to get the copy of the object(like a copy of intvariable), rather than the object itself. we use call by valuemethod.
  3. to prevent the private data from
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.