What is size of a object of following class?
class Foo
{
public:
void foo(){}
}
Answer Posted / sirama
Size of the Object 1 Byte (ie) 8 bits. Because that is
minimum possible size required to allocate something on
memory.
Say If a Create the Object like Foo obj;
Something needs to loaded on Stack. But, actually it does
not have any internal data memebers. Hence, the minimum
possible is 1 Byte.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is meant by a delegate?
What are the stages in the development cycle?
What is virtual table?
What is the difference between the indirection operator and the address of oper-ator?
Describe linkages and types of linkages?
What are virtual constructors/destructors?
How can I learn dev c++ programming?
Explain how a pointer to function can be declared in C++?
What are single and multiple inheritances in c++?
Differentiate between an inspector and a mutator ?
What do you mean by static variables?
Do you know the use of vtable?
What is the difference between mutex and binary semaphore?
What are references in c++?
why is c++ called oops? Explain