Declaring a structure definition externally is not the same as initializing a global variable. You still declare the key[] array of structs within main(), so that's not global. You would normally put...
Type: Posts; User: Sharke
Declaring a structure definition externally is not the same as initializing a global variable. You still declare the key[] array of structs within main(), so that's not global. You would normally put...
I was under the impression that all you had to do was name your source files with a dot c extension and VS would compile them as C automatically - no need for any changes in settings. That's what...
So basically the only thing wrong was that he declared the struct inside the function, meaning its tag couldn't be used in another function? (Forgetting about passing the mysterious 'k' instead of...