By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

order of initialization

P: n/a
Hello,

consider the following code:
class C {
public:
C();

private:
int a;
int b;
};

C::C() : a(0), b(a) {}
Is a guaranteed to be initialized when b is getting initialized so that b
gets the value 0?

Wolfgang
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.