What is size of a empty class?
Answer Posted / mashal
Size of an empty class is 1 byte. It is non zero to ensure that the two different objects will have different addresses.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of object in c++?
What is buffer and example?
Can we use clrscr in c++?
What is #include c++?
How many different levels of pointers are there?
State the difference between pre and post increment/decrement operations.
Const char *p , char const *p What is the difference between the above two?
What are the different types of comments allowed in c++?
What is #include ctype h in c++?
Explain dangling pointer.
Which of the following is evaluated first: a) && b) || c) !
What is dynamic and static typing?
What do you mean by function overriding & function overloading in c++?
Can static member variables be private?
Explain stack & heap objects?