What is the difference between C++ class vs structure
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/92859/what-are-the-differences-between-struct-and-class-in-c">What are the differences between struct and class in C++</a>  </p>
</blockquote>



<p>I have come across this question many time in interview but could not answered properly.</p>

<p>two difference I know is</p>

<p>default access specifier(public in struct &amp; private in class )</p>

<p>memory layout of class is unpredictable when multiple section like private/ public and protected is defined.</p>

<p>Any other difference please let me know</p>
