1.

In How Many Ways You Can Pass Parameters To A Method?

Answer»

While calling a function, there are two WAYS that arguments can be PASSED to a function:

  • Call by value: This METHOD copies the actual value of an argument into the FORMAL parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument.
  • Call by reference: This method copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This MEANS that changes made to the parameter affect the argument.

While calling a function, there are two ways that arguments can be passed to a function:



Discussion

No Comment Found