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 #include cstdlib in c++?
What is basic if statement syntax?
How is c++ used in the real world?
What is array give example?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
what kind of projects are suitable for c and c++
What happens when you make call 'delete this;'?
How do you clear a set in c++?
What does return 0 do in c++?
Is atoi safe?
What is ios flag in c++?
What is string in c++ programming?
Do you know the use of vtable?
What is the difference between mutex and binary semaphore?
What is a static member?