Call By Address

  • In the technique of"call by address" the compiler passes the address of the argument(i.e. a pointer to the argument) instead of passing its value.
  • Now any changes that is made to the data item (i.e. to the contents of the address) will be reflected in both the function and calling portion.
  • The call by pointer method is desirable since, the use of pointer as a function argument permits the corresponding dataitem to be altered permanently from within the function.


    Before swap a=5 b=10 
    value in main function after swapping in swap function
    a=5 and b=10

  • Print Page