Log in

View Full Version : Static variables


C++
03-02-2010, 07:47 AM
Hi, I want to know when and where is memory allocated for static variables. If: 1) static variable is in a function 2) static variable is a member of a class 3) a global static variable inside a file of code. Much appreciated. Google hasn't been much of a friend in this case. :)