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
☺ | If a class is declared without any access modifiers, where may the class be accessed? |
☺ | What is the difference between procedural and object-oriented programs? |
☺ | Who were the three famous amigos and what was their contribution to the object community? |
☺ | Can a method be overloaded based on different return type but same argument type in programming? |
☺ | List out some of the object-oriented methodologies? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |