Loading...
Engaged Employer
How do you declare global variables in multiple files?
Anonymous
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.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.