I have a structure, say a struct ZKN. It contains charms / ints, it does not matter.
And I wanted to make 12 such structures. And then there was a strange glitch (maybe I just do not know what).
If after defining the structure, immediately write zkn [11], i.e.
struct ZKN { ... } zkn[11];
then everything works fine. But if I declare the designation, write ZKN zkn [11] in main ; the compiler is already AFTER program execution, while successful, will be cursing.
Is he swearing at the wrong memory allocation, or what? And why then immediately after the structure, if we declare, then the norms, and in the main, not the norms.
Plus, in a book on C ++, they declare that in main, that right after the structure, they don’t care. How so?