Explain the keywords static and volatile in C
Anonymous
The static keyword can be used within functions to preserve their value between function calls and to also restrict a variable's scope to within the file in which it's declared. Similarly, volatile is a keyword that can be used to ensure that a variable does not get cached or otherwise optimized because it can change at any time as a result of factors outside of the program itself. It is often used to set flags by the register as well.
Check out your Company Bowl for anonymous work chats.