What is size of empty class object

Answer Posted / vinay singh

the size of class is nothing until it will not create an object. Class is a template so class object size is determined.So here empty class object size is 1 byte and object is created on managed heap.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various operations performed on stack?

841


What is the main purpose of overloading operators?

835


What is overloading unary operator?

844


What is double in c++?

840


What is the full form of stl in c++?

938


Explain what data encapsulation is in c++?

815


What is #include sstream?

825


What is c++ coding?

883


Can I run c program in turbo c++?

807


What is a local variable?

867


What is a vector c++?

867


Write a code/algo to find the frequency of each element in an array?

863


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

814


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

862


Is ca high or low level language?

853