tags:

views:

47

answers:

0

Possible Duplicate:
What are the differences between struct and class in C++

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

two difference I know is

default access specifier(public in struct & private in class )

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

Any other difference please let me know