??? 06/17/04 09:19 Read: times |
#72626 - RE: Static Local Variable Vs Global Variable Responding to: ???'s previous message |
"First, let me distinguish between life and scope. Life of an object determines whether the object is still in the memory (of the process) whereas scope of the object is whether can I know the variable by its name at this position. It is possible that object is live, but not visible (not in scope) but not that object is not alive but in scope (except for dynamically allocated objects where you refer object through pointers)."
You are confused about the meaning of 'scope'. 'Life' is not a piece of 'C' terminology. I suggest you look up 'scope', 'visibility', 'extent' and 'storage class specifiers' in a good 'C' book. The subject is too wide to provide a concise but complete description here. |
Topic | Author | Date |
Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
Not 8051-Specific | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable | 01/01/70 00:00 | |
RE: Static Local Variable Vs Global Variable![]() | 01/01/70 00:00 |