Which of the following regarding scope is true?

Questions & AnswersCategory: Programming LanguageWhich of the following regarding scope is true?
Adam asked 2 years ago

Which of the following regarding scope is true?

a. Data that is stored in a variable when a function is called is never cleared out.

b. Function parameters are visible in the function in which they are used.

c. All variables you use in your program have to be declared as global variables.

d. Variables that have a local scope are only visible in the function in which they are declared.