If two objects are declared in a single line, in what order are they constructed?
<p>May be this is a basic question, but I couldn't find any relevant posts regarding it.</p><p>Let's say a class has been defined as</p><pre><br /><code>class A {<br />//.....<br />}<br /></code><br /></pre><p>and now I am creating two objects as</p><pre><br /><code>A a,b;<br /></code><br /></pre><p>I have the following query</p><p>In what order a and b created? Is it defined by the standard?</p><br /><h2>Click here view more answers <a href="http://ift.tt/1OrGF06">http://ift.tt/1OrGF06</a></h2>
Nhận xét
Đăng nhận xét