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
When do we run a shell in the unix system?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Define upcasting.
Can member data be public?
What is cout flush?
How can you quickly find the number of elements stored in a static array?
Describe new operator?
What is a stack? How it can be implemented?
How much do coding jobs pay?
What are c++ manipulators?
What is a breakpoint?
What do you understand by zombie objects in c++?
How can a struct in c++ differs from a struct in c?
Write a C++ Program to check whether a number is prime number or not?
Array base access faster or pointer base access is faster?