If I declare static const variable in header file like this:
static const int my_variable = 1;
and then include this header in more than one .c
files, will compilator make new instance per each file or will be "smart" enough to see it is const
and will make only one instance for all the files?
I know I can make it extern and define it in one of .c
files that include this header but this is what I am trying not to do.