Question: Coding the keyword static on a block scope ( local ) variable changes the variable's storage class from automatic to static, keeping it in memory

Coding the keyword static on a block scope (local) variable
changes the variable's storage class from automatic to static, keeping it in memory as long as the program is running.
changes the variable's storage class from static to automatic, keeping it in memory as long as the current block is executing.
changes the variable's linkage, making it impossible to export the variable to a different source code file.
shares the variable among all functions of the file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!