In this post, we will see Local Referencing Environments | Subprograms | PPL | Sebesta | local referencing environments, subprograms, ppl, sebesta
3. Local Referencing
Environments
a. Nested Subprogram
e.g. Javascript
b. External / Global Variable
c. Local Variable
- Stack Dynamic Local
Variable
Advantages:
i. Flexibility
ii. Supports Recursion
iii. Shared Memory
Disadvantages:
i. Time to allocate and
deallocate
ii. Indirect Access
- Static Local Variable
Advantages:
i. No time wastage for
allocation and deallocation
ii. Direct Access
Disadvantages:
i. Do not support recursion
ii. Storage can not be shared
Watch following video:
Watch on YouTube: https://www.youtube.com/watch?v=uSnmT80-TgM
No comments:
Post a Comment