What is size of a empty class?
Answer Posted / dips
it doesnot take memory just writing class in C++
means i want to say
class d{};
no memory allocation is done here
but is this a empty class?
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is the difference between struct and class?
What is c++ prototype?
What is void pointer in c++ with example?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is purpose of abstract class?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
How do I make turbo c++ full screen?
What is the difference between method overloading and method overriding in c++?
What is encapsulation in C++? Give an example.
What c++ library is string in?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What are stacks? Give an example where they are useful.
What are the basic data types used in c++?
why and when we can declar member fuction as a private in the class?