Комментарии:
Very clear explaination ,thank you for doing this.
ОтветитьNo trash talk....just to the point with crystal clear explanation... thanks mate!!
ОтветитьI have a states.h header file that has no C source file because the states.h only contains an enum of states. I want this enum to be global; how can I make it global and accessible across all the files that include states.h.
//states.h
typedef enum {state1, state2, state3} STATES;
extern STATES state;
I want the state to be global.
Man i like your videos!
Keep it up...
Thank you so much this was helpful!
Is there a way to change the value of the variable inside the library.c file through the c file in which we included library.c file?
Thank you.
Thanks! your video helped me a lot with my project :)
ОтветитьYou've made fricking awesome c example playlist enjoying a lot
Thanks :)
Thank a lot for your videos!!
if you or someone have tip to my case , i will be grateful
what can i do if i get the error "multiple definition" while i need to get two char[] from the user amd compare them (strcmp function)
Thank you for the great explanation, the funtions dont need extern deckaration right?
ОтветитьThe advantage is no allocation?
Ответитьreally crisp explanation.
I've got a project working in the manor you outline, extern in C, def in H and access from main. I have several other classes I'd also like to have access to that extern object. But when I try to include it with any of the other files, the compiler doesn't like it. anyone got any ideas?
Thanks
ОтветитьVery clear explaination ,thank you for doing this.
ОтветитьThank you ! great explanation
Ответить