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 will the line of code below print out and why?
What do you mean by late binding?
Explain the uses of static class data?
What do you mean by translation unit?
Show the application of a dynamic array with the help of an example.
What is c++ vb?
What is constructor c++?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is microsoft c++ redistributable?
How would you implement a substr() function that extracts a sub string from a given string?
What is the use of structure in c++?
Why ctype h is used in c++?
What is abstract class in c++?
Describe Trees using C++ with an example.
What are c++ variables?