Why is volatile needed in C?
Why is volatile needed in C? What is it used for? What will it do?
Why is volatile needed in C? What is it used for? What will it do?
This comes in useful when you have global variables. You declare the existence of global variables in a header, so that each source file that includes the header knows about it, but you only need to “define” it once in one of your source files. To clarify, using extern int x; tells the compiler that … Read more