Multiple choice

The default parameter passing mechanism is called __________.

  1. call by value

  2. call by name

  3. call by reference

  4. call by address

  5. call by default

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument. By default, C uses call by value to pass arguments. In general, this means that code within a function cannot alter the arguments used to call the function.