Azienda coinvolta
How do you declare global variables in multiple files?
Anonimo
One can use 'extern' keyword to share variables across different files.
Simply add the variables in a header file and include the header file in all the c file which wants to access those global variables.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.