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
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is a manipulator in c++?
How can you say that a template is better than a base class?
Which programming language should I learn first?
What is the full form of india?
What is encapsulation in c++?
If dog is a friend of boy, is boy a friend of dog?
What is using namespace std in cpp?
Can I create my own functions in c++?
What does ios :: app do in c++?
Can I uninstall microsoft c++ redistributable?
What is static in c++?
Is there any difference between int [] a and int a [] in c++?
What is the difference between map and hashmap in c++?
Define pure virtual function?