Possible Duplicate:
What are the differences between struct and class in C++
consider that i need to answer this question for interview..
Possible Duplicate:
What are the differences between struct and class in C++
consider that i need to answer this question for interview..
in structure, the member access specifier are default to public while on class is private.
This is a standard interview question.
The standard (and correct) answer is "A struct's members are public by default while a class' members are private by default."
For bonus points, the full answer is "A struct's members are public by default and inheritance is public by default whereas a class's members and inheritance are private by default."