Question:

What is differant between call by referance and call by value?

by Guest60288  |  earlier

0 LIKES UnLike

What is differant between call by referance and call by value?

 Tags:

   Report

3 ANSWERS


  1. By reference sets a reference to the value, by value uses the value itself. The function called by value may change the original value, by ref will not.


  2. In a call by value, only the value of a parameter is passed to a function or subroutine.  The source of that value is not available to the called routine.  Since the passed value is essentially a copy of the parameter variable, the variable itself cannot be affected by the routine.

    In a call by reference, a pointer or handle to the actual parameter is passed to the called function or subroutine.  The routine now has access to the variable that is the parameter and can make changes to it.

  3. hi,in simple definition for ur query is-

    call by reference -REQUEST FOR CALL [which adds reference and other means to call]

    call by value - REQUESTED TO CALL [which adds only your abilities and dediction being respected for call]

    so the difference is as -

    REQUEST to caller for call.

    REQUEST by caller to call.

    its the difference between only two words- TO & By.

    i think u got it.

    bye

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.