C local scope advantages
Block scope Or Local Variable in C Programming :
Variable is said to have local scope / block scope if it is defined within function or local block
Advantages of Local Variables :
- Since data cannot be accessed from other functions , Data Integrity is preserved
- Only required data can be passed to function , thus protecting the remaining data