Question

What is the scope of a variable declared inside a block of code (e.g., within curly braces)?

A It can be accessed from anywhere within the same file.
B It can only be accessed within the same block of code.
C It can be accessed from any function within the same file.
D It can only be accessed from functions declared after the block.
Practice Next

Relevant for Exams:

Hey! Ask a query