How many ways can an argument be passed to a subroutine in programming?
Submitted by: AdministratorAn argument can be passed in two ways in a programming language. They are Pass by Value and Passing by Reference.
Passing by value: This method copies the value of an argument into the formal parameter of the subroutine.
Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.
Submitted by: Administrator
Passing by value: This method copies the value of an argument into the formal parameter of the subroutine.
Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.
Submitted by: Administrator
Read Online Programming Job Interview Questions And Answers
Top Programming Questions
☺ | Does a class inherit the constructors of its superclass in programming? |
☺ | What are the advantages of OOPL in a programming language? |
☺ | Can a method be overloaded based on different return type but same argument type in programming? |
☺ | How many ways can an argument be passed to a subroutine in programming? |
☺ | What do you mean by programming analysis and design? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |