What is size of a empty class?
Answer Posted / ganesh
when ever an datamember is not the part of the class then default value for object size is 1 byte.
but if int a;
char c;
then it will consume 3 bytes .........
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is the basic difference between C and C++?
What do you mean by delegate? Can a user retain delegates?
What is the full form of dos?
What is the best it certification?
What parameter does the constructor to an ofstream object take?
Explain the difference between c++ and java.
How to allocate memory dynamically for a reference?
What is extern c++?
What is protected inheritance?
What is function overloading in C++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is a flag in c++?
What is object file? How can you access object file?
What are structures and unions?