Computer Science, asked by kaajuu7890, 1 year ago

Which of the following regarding scope is true?

1- Function parameters are visible in the function in which they are used

2- All variables you use in your program have to be declared as global variables

3- Variables that have a local scope are only visible in the function in which they are declared

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

Answers

Answered by Hbbhatta
1
no.2 is true I think
Answered by Anonymous
0

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

1- The scope of function parameters is limited to the function itself.

2- No, you can declare variables locally or globally, they need not be always global.

4- Data is cleared out from the variable as soon as the function is executed.

Similar questions