Skip to content
Sign in
Computer

In C++ the body of the function is enclosed which?

Tap an option to check the answer. You can also press A–D.

Show answer

Correct answer: C) { }

In C++, the body of a function is enclosed within curly braces: {}. This structure contains the instructions that will be executed when the function is called.
Explanation
In C++, the body of a function is enclosed within curly braces: {}. This structure contains the instructions that will be executed when the function is called.