In a statement like
static int a, b, c;
static applied to the definition of all 3 variables or just the first one? What about other keywords like
If the rule is different for different keywords, how does it differ?
For example, I know that
const is distributed, but pointer is not, e.g.
int * a, b;
is the same as
int * a; int b;
Note: I tried asking a similar question using
const as an example instead of
static, and it was misunderstood. I'd like to know what the general rule is for all applicable keywords according to the standard.
Let's put it this way. How is a definition/declaration parsed in any case where the variable type specifier consists of multiple words followed by a comma separated list of variables?