How does memory get allocated to class member variables?
please clear me in this basic issue.
when the memory will be allocated to class member variables?
Kindly, note here that I am only concerned about class member variables memory allocation and not class object.
Is it at compile time or runtime?
eg:
class one
{
public:
int i; // Where will it get stored on Stack or Heap?
private:
one();
onemore();
}
int main()
{
one ob1;
retun 0;
}
Thanking you,
VyankateshS.