Pergunta de entrevista da empresa Intel Corporation

How do you declare global variables in multiple files?

Respostas da entrevista

Sigiloso

24 de fev. de 2016

One can use 'extern' keyword to share variables across different files.

Sigiloso

14 de mar. de 2011

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.

1