Difference between static variable and global variable in C++?