An object whose identifier is declared with external or internal linkage, or with the storage-class specifier static has static storage duration. Its lifetime is the entire execution of the program and its stored value is initialized only once, prior to program
All objects which neither have dynamic storage duration nor are local have static storage duration.
Local objects explicitly declared auto or register or not explicitly declared static or extern have automatic storage duration.
• Static variables that are declared in a scope inside the construct are shared.
• Static storage duration variables that are declared in a scope inside the construct are shared.
Users browsing this forum: Yahoo [Bot] and 0 guests