The default parameter passing method used in C++ is —

2021

The default parameter passing method used in C++ is —

Answer: B. Call by ValueIn C++, function parameters are passed by value by default , meaning a copy of the variable is sent, not the original.

  1. A.

    Call by Reference

  2. B.

    Call by Value

  3. C.

    Call by Name

  4. D.

    None of the above

Attempted by 607 students.

Show answer & explanation

Correct answer: B

In C++, function parameters are passed by value by default , meaning a copy of the variable is sent, not the original.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Bpsc

Loading lesson…