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 flush c++?
What's the order in which the local objects are destructed?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is abstraction in c++?
What is size_type?
What is the difference between public and private data members?
What is a template in c++?
What is #include cmath?
What is the size of integer variable?
Why do we use vector in c++?
Is swift faster than c++?
What is the use of string in c++?
Define what is constructor?
Write about the various sections of the executable image?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator