What does it mean to say a variable is local to a function


What does it mean to say a variable is local to a function?

The choices are:

1. Main() can use it whenever it wants to, but no other functions can see or use it.

2. Only the function where the variable is declared can see and use it.

3. No functions can see or use it.

4. Every function can use it.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: What does it mean to say a variable is local to a function
Reference No:- TGS01419492

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)