When is a variable declared inside a function body in scope?
a) within the body of that function
b) within that body of that function and all the functions it calls
c) from the variable declaration to the end of the source code file
d) everywhere in the source code file

Respuesta :

Option a is correct. A variable is declared inside a function body in scope when it is within the body of that function.

A scope is a section of the program, and generally speaking, variables can be declared in one of three places:

Local variables are defined within a function or a block, and formal parameters are defined when function parameters are defined.

Global variables are variables that exist outside of all functions.

Local variables are those that are declared inside a function or block. Only statements included within that function or code block are permitted to use them. Outside of their own function, local variables are unknown.

To know more about function click here:

https://brainly.com/question/9171028

#SPJ4

ACCESS MORE
EDU ACCESS