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.
How does memory get allocated to class member variables?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Aug 8, 2009, 2:53 AM EDT