c - When to use static keyword before global variables? -
Can you tell us that when you define the use of static keywords in global variables or permanent files, Is defined in?
For example, suppose I have a header file with a line:
const float kGameSpriteWidth = 12.0f;
Should it be in front of static
const
? Static
?
static
changes the file locally, which is generally good Look, for example, see.
Comments
Post a Comment