static keyword keeps the scope of a global variable limited to that translation unit.
If I use static int x in a .h file and include that .h file every
Basically, each source file together with all included header files is a single translation unit. So If you have a static variable in a header file then it will be unique in each source file (translation unit) the header file is included in.