'Difference between a static instance of a struct and initializing a struct static and then initializing?
Is there a difference between the following code fragments?
static struct My_Type {
int i;
int j;
} My_Instance;
and
struct My_Type {
int i;
int j;
} static My_Instance;
I´m assuming, both occurrences of My_instance would be static variables, with the only difference, that another struct:
My_Type Second_Instance;
wouldn't be static in the second case. Is this correct?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
