Computer Science, asked by marybrempoma, 10 months ago

define the two types of parameters. How do they differ? Under what circumstances would you use each types. ​

Answers

Answered by Anonymous
3

\mathfrak{\huge{\orange{\underline{\underline{Answer :}}}}}

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 Daahir2002
1

Answer:

define the two types of parameters. how do they differ? under what circumstances would you use each type?

Explanation:

Similar questions