Difference Between Call By Value And Call By Reference

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    Difference Between Call By Value And Call By Reference

    What is the difference between Call by Value and Call by Reference?
  • Guest

    #2
    In call by value the copy of actual arguments has been p***ed while calling and in call by reference the address of the variables has been p***ed with a value.

    Comment

    • priya.sharma
      Senior Member
      • Aug 2016
      • 105

      #3
      Call by value essentially means that a copy of the variable is p***ed into the function. The function does not modify the original variable if it writes to the function input variable. P*** by reference means that essentially the variable itself is p***ed. Writes to the function input variable apply also to the original variable, and no copy of the variable is made when calling the function.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎