Explain what are The Different Methods For Passing Parameters To A Procedure?

Category: QuestionsExplain what are The Different Methods For Passing Parameters To A Procedure?
Editor">Editor Staff asked 2 years ago

Explain what are The Different Methods For Passing Parameters To A Procedure?

1 Answers
Editor">Editor Staff answered 2 years ago

There are following three different methods to pass values to a procedure:
Positional —Refers to a method in which actual parameters of a procedure are passed in the same order as the formal parameters.
Named—Refers to a method in which actual parameters of a procedure are passed in any arbitrary order but are associated with their corresponding formal parameters.
Combination—Refers to a method in which some parameters are passed as positional and some are passed as named parameters.