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
the maximum length of a character constant can be a) 2 b) 1 c) 8
What happens if a pointer is deleted twice?
daily Routine of father
Explain Text Manipulation Routines?
Is overriding possible in c++?
Define pre-condition and post-condition to a member function in c++?
What is null and void pointer?
What are inline functions? What is the syntax for defining an inline function?
Which software is best for coding?
Differentiate between declaration and definition.
How can I learn dev c++ programming?
What is the difference between global variables and static varables?
Which of the following is evaluated first: a) && b) || c) !
Why is c++ a mid-level programming language?
What are the unique features of C++.