class vs structure in c++
<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>The keyword class and struct are almost equivalent in c++, only difference between a structure and a class is that structure members have public access by default and class members have private access by default.</p>

<p>Is there any advantage (memory usage, speed, optimization etc) in using keyword struct instead of class when all member variables of a class are required to have public access.</p>

<p>Edit:</p>

<p>I appreciate everyone and SRN for pointing the other link
I was asking if any know any memory usage, speed difference. Please read the question carefully before giving negative points. </p>
