1.

Write the rules of local variable?

Answer»

Rules of local variable: 

1. A variable with local scope can be accessed only within the function/block that it is created in. 

2. When a variable is created inside the function/block, the variable becomes local to it. 

3. A local variable only exists while the function is executing. 

4. The formate arguments are also local to function.



Discussion

No Comment Found