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
Can we use this pointer inside static member function?
What is a unnitialised pointer?
Name the implicit member functions of a class.
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
what is data abstraction in C++?
What is the use of typedef?
How to allocate memory dynamically for a reference?
What is setw manipulator in c++?
Is facebook written in c++?
Explain how a pointer to function can be declared in C++?
what is a class? Explain with an example.
What is meaning of in c++?
What is stoi in c++?
What is insertion sorting?
What is the difference between strcpy() and strncpy()?