Variables that are known only to the function in which they are declared are called _____ variables

global
local
main
separate E. void

The correct answer is: B. local

Local variables are variables that are known only to the function in which they are declared. They are created when the function is called and destroyed when the function returns. Local variables are often used to store temporary data that is only needed for the execution of the function.

Global variables are variables that are known to all functions in the program. They are created when the program starts and destroyed when the program ends. Global variables are often used to store data that is shared by multiple functions.

Main is a function that is called when the program starts. It is typically used to initialize the program and then call other functions to perform the main tasks of the program.

Separate variables are not a valid type of variable.

Void is a keyword that is used to declare functions that do not return a value.

I hope this helps! Let me know if you have any other questions.

Exit mobile version