Difficulty: Easy
Correct Answer: {
Explanation:
Introduction / Context:C and C++ functions contain a body that is a block (also called a compound statement). Correctly marking the start and end of that block is crucial for parsing and for the scope rules that govern variables and control structures. This question asks which symbol begins the block.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Solution:
Write a minimal function: int f() { return 0; }The '{' immediately after the signature starts the function's block; '}' ends it.Therefore, the correct delimiter for beginning the block is '{'.Verification / Alternative check:
Compilers will emit syntax errors if the opening brace is missing or mismatched, confirming its role as the block opener.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
{
Discussion & Comments