I apologize for this overly simplistic question, but I can't seem to figure out this example in the book I'm reading:
void f5()
{
int x;
{
int y;
}
}
What are the braces surrounding int y
for? Can you put braces wherever you want? If so, when and why would you do so or is this just an error in the book?