define the two types of parameters. How do they differ? Under what circumstances would you use each types.
Answers
Answered by
3
Parameters: -
Parameters are a set of attributes that are provided in the function. The purpose of the parameters is to take input for the function and store the values inside them.
For example, a function sum which calculates the sum of two numbers is declared in C++ language as:
int sum (int num1, int num2);
The above definition of function sum contains two parameters num1 and num2 both of which have integer data type. The parameters here store the value of the two numbers whose sum is to be calculated.
Hope It Will Help.❤️
Answered by
1
Answer:
define the two types of parameters. how do they differ? under what circumstances would you use each type?
Explanation:
Similar questions