Answer Posted / orvaishnavi
The size of an empty class is 1.
Reason - An object of a class should have unique address.
In order for the object to get unique address, the compiler
inserts a dummy type of size 1(least positive value) into
the empty class so the sizeof the class is returned as 1.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is c++ stringstream?
What is the default width for ouputting a long integer using the insertion operator?
If there are two catch statements, one for base and one for derived, which should come first?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is the difference between #import and #include?
What is DlgProc?
What is code reusability in c++?
an integer constant must have atleast one a) character b) digit c) decimal point
What are the advantage of using register variables?
Name the debugging methods that are used to solve problems?
If dog is a friend of boy, is boy a friend of dog?
Is c++ still being used?
What is a class definition?
Explain about templates of C++.
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?