parentheses
angle brackets
curly brackets
square brackets
Answer is Right!
Answer is Wrong!
The correct answer is C. curly brackets.
A function is a block of code that performs a specific task. The body of a function is the code that is executed when the function is called. The body of a function is surrounded by curly brackets.
Parentheses are used to group expressions together. Angle brackets are used to declare variables and arrays. Square brackets are used to access elements of an array.
Here is an example of a function in C++:
c++
void myFunction() {
// This is the body of the function.
}
When the function myFunction()
is called, the code inside the curly brackets will be executed.