Which mechanism is used by a function to pass parameter? Write an appropriate word or output for it.
Answers
Answered by
1
hello mate this is your ans
it is used by both c and Java ......
HOPE IT HELPS YOU!
PLEASE MARK ME AS BRAIN LIST......
it is used by both c and Java ......
HOPE IT HELPS YOU!
PLEASE MARK ME AS BRAIN LIST......
Answered by
1
The mechanism is used by a function to pass parameter and appropriate output are as follows:
- 'Functions' are in-built and one of the most popular features in programming Languages.
- A Function is basically a section of code that takes information, processes it as defined, does the required computations, and after performing the necessary operations, usually returns a value to the 'main' function.
- A parameter can be passed in two ways from a function:
• Pass by Value: In this method, a 'in-mode' semantics is used. In this, changes in the formal parameter doesn't return to the caller function.
These changes only take effect inside the called function, and it uses a separate storage location. This is also known as 'call by value'.
• Pass by reference: In this method, a 'in/out-mode' semantics is used. In this, changes in the formal parameter return to the caller function.
These changes also take effect in the actual parameter in the calling function. This is also known as 'call by reference'.
Similar questions
Political Science,
7 months ago
Social Sciences,
7 months ago
India Languages,
1 year ago
Science,
1 year ago
English,
1 year ago