A variable defined with inline
keyword in C++ allows definition of the variable in multiple compilation units and lets linker to resolve these multiple definitions into a single one, as it is explained here: https://stackoverflow.com/a/47502744/14721148
Is it possible to define a variable with inline
keyword in C in order to achieve the same behavior as in C++? If not, is there any workaround in C language?