Discussion Forum : Introduction To Methods And Streams
Question -

Which of these is correct about passing an argument by call-by-value process?

Options:
A .  Copy of argument is made into the formal parameter of the subroutine.
B .  Reference to original argument is passed to formal parameter of the subroutine.
C .  Copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument.
D .  Reference to original argument is passed to formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument.
Answer: Option A

When we pass an argument by call-by-value a copy of argument is made into the formal 

parameter of the subroutine and changes made on parameters of subroutine have no 

effect on original argument, they remain the same.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *