Intro To Function Parameters Flashcards
1
Q
Function parameters
A
Like variables used in a function always initialized with a value provided by the caller of the function
2
Q
Definition of function parameters
A
In the function declaration by placing them between the parenthesis after the function identifier with multiple paramethers separated by coma
3
Q
Argument
A
Value that is passed from the caller to the function when the call is made
4
Q
Pass by value
A
When a function is called all the paramethers are created as variables, and the value is copied to the matching parameters
5
Q
Use of the parameters with return value
A
We create function that takes data as input do some calculations with it and returns the value to the caller