What is size of a empty class?

Answer Posted / dips

it doesnot take memory just writing class in C++
means i want to say
class d{};
no memory allocation is done here
but is this a empty class?

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are put and get pointers?

582


What is difference between c++ 11 and c++ 14?

572


What are shallow and deep copy?

595


What are stacks?

605


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

615






How do you show the declaration of a virtual constructor?

527


Is linux written in c or c++?

549


Do inline functions improve performance?

647


Write about the various sections of the executable image?

571


What is the syntax for a for loop?

597


What should main() return in c and c++?

524


What is encapsulation in c++ with example?

584


What is #include cstdlib in c++?

659


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

586


How do I write a c++ program?

596