title: C++ struct vs Class in terms of memory
body: <p>I have recently come across a question in one of my interview.</p>
  
  <p>What is the difference between C++ struct &amp; class in terms of memory ??</p>
  
  <p>I know they are same in all aspects except access specifiers while inheriting &amp; in case of member variables.</p>
  
  <p>Apart from this is there a real difference in terms of memory (may be memory allocation or destruction or memory management whatever) ????</p>
  
  <p>Edit:
  I am not pretty sure why did the interviewer asks this question when there is no difference. I have found similar question <a href="http://www.geeksforgeeks.org/g-fact-76/" rel="nofollow">here</a>  see the 2nd comment down to that link, he is asking a same question but no answer. I think there should be a diff.</p>
  
  <p>Thanks In Advance.</p>