Solved

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

Posted on 2015-01-24
1
70 Views
Last Modified: 2015-02-11
25. Are sizes of a class and an analogue struct equal?
0
Comment
Question by:Nusrat Nuriyev
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 40568256
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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question