72.9k views
0 votes
Run-time parameters passed to a function allow you to use different values each time the function is called.

Select one:

True

False

User RodSarhan
by
6.9k points

1 Answer

5 votes

Answer:

True

Step-by-step explanation:

Run-time parameters passed to a function allow you to use different values each time the function is called. Let us consider an example:

int add(int a,int b){

return a+b;

}

Now we can execute the same function with different parameters at runtime:

add(3,4) returns 7.

add(1,2) return 3.

add (10,1) return 11.

During each invocation , the formal function parameters are substituted by actual runtime values and the function code is executed.

User Erna
by
7.1k points