Can static variables be declared in a header file? Ans. You can't declare a static variable without defining it as well (this is because the storage class modifiers static and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause...
See more
Download the Study24x7 App, so you can connect and collaborate.