160k views
0 votes
Assume a varible is declared in a block of code within a pair of curly braces. The scope of the variable ______ Group of answer choices starts from its declaration point and extends to the end of the block. starts from its declaration point and extends to the end of the entire program. covers the entire block, including the code before the declaration point. covers the entire program, including the code in the other blocks.

1 Answer

6 votes

Answer:

The answer is the second choice that is "starts from its declaration point and extends to the end of the entire program".

Step-by-step explanation:

In a functional component were specified variables of local scope, and those outside are defined of global scope. It shows that the local variables can be accessible within the specified function, whereas global variables can be accessed via all functions all through the code structure. The variable size is the code portion where the variable can be accessed.

User Jeremy Jackson
by
4.7k points