What is size of a empty class?
Answer Posted / ganesh
when ever an datamember is not the part of the class then default value for object size is 1 byte.
but if int a;
char c;
then it will consume 3 bytes .........
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a .lib file in c++?
Differentiate between a pointer and a reference with respect to c++.
Write about all the implicit member functions of a class?
What is a c++ vector?
Define copy constructor.
What is the function to call to turn an ascii string into a long?
Is python better than c++?
How do you flush a buffer in c++?
Please explain class & object in c++?
Which is not a valid keyword a) public b) protected c) guarded
Which operator cannot overload?
What is the use of data hiding?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Differentiate between late binding and early binding.
What is searching? Explain linear and binary search.