what is the size of a class which contains no member
variables but has two objects??? is it 1 or 2??

Answer Posted / rao

2 (if two objects are empty class) otherwise Note : The
size of class = the size of Data members of the objects +
Size of data members of the Class.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define macro.

695


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

811


What is a manipulator in c++?

795


What is java and c++?

745


What is a c++ vector?

691






What is the type of 'this' pointer? When does it get created?

628


How do you write a function that can reverse a linked-list?

678


What is heap sort in c++?

709


What is the best way to take screenshots of a window with c++ in windows?

668


What is std namespace in c++?

807


what is a class? Explain with an example.

753


What is the difference between #import and #include?

671


What jobs can you get with a c++ certification?

678


What is the meaning of string in c++?

662


What is a .lib file in c++?

645