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
Explain how functions are classified in C++ ?
What is a base class?
What is #include cmath?
How do I run c++?
What is an associative container in c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is the difference between the compiler and the preprocessor?
Differentiate between the manipulator and setf( ) function?
What is class and structure in c++?
What is the use of turbo c++?
What is main function in c++ with example?
What is the main function c++?
What is c++ hiding?
What is an operator in c++?
What is a map in c++?