25. Are sizes of a class and an analogue struct equal?

25. Are sizes of a class and an analogue struct equal?
Nusrat NuriyevAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jkrConnect With a Mentor Commented:
Yes, absolutely. The size of either a class or struct is only determined by their data members. The 'virtual' exception described in http://www.experts-exchange.com/Programming/Languages/CPP/Q_28603161.html also applies to structs.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.