The local variable gains higher priority in specific situations, leading to the global variable’s value being overwritten.