A parameter is a special kind of variable in computer programming language that is used to pass information between functions or procedures. The actual information passed is called an argument.
The rules for how arguments are passed to functions are determined by the programming language and the system. These rules specify whether the arguments will be passed through the stack or machine registers or any other method.It specifies what would be the order of the arguments (from left to right or right to left); whether arguments will be passed by value or by reference etc. Furthermore, in languages such as HL and Haskel, only one argument is allowed per function, these languages, if more than one argument is needed, the argument is passed through multiple functions. In most other languages, multiple parameters can be specified for a single function. The C programming language allows variable number of parameters for a single function.
The rules for how arguments are passed to functions are determined by the programming language and the system. These rules specify whether the arguments will be passed through the stack or machine registers or any other method.It specifies what would be the order of the arguments (from left to right or right to left); whether arguments will be passed by value or by reference etc. Furthermore, in languages such as HL and Haskel, only one argument is allowed per function, these languages, if more than one argument is needed, the argument is passed through multiple functions. In most other languages, multiple parameters can be specified for a single function. The C programming language allows variable number of parameters for a single function.
0 Comments