Multiple choice

In C++, passing structure variable to a function results in compilation error.

  1. True

  2. False

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

Passing a structure variable to a function is perfectly valid in C++. The structure is passed by value, creating a copy of the structure within the function scope.