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

Answer Posted / asghar ali chandio

every object will occypy one byte of memory. If objects are
two then Size will be two bytes.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use iterators?

633


How do I write a c++ program?

606


How would you use the functions memcpy(), memset(), memmove()?

632


what are Operators and explain with an example?

722


What gives the current position of the put pointer?

571






Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2100


Why is c++ awesome?

589


What is c++ good for?

599


Can constructor be static in c++?

653


Are iterators pointers?

690


What is the disadvantage of using a macro?

601


How is modularity introduced in C++?

776


Explain all the C++ concepts using examples.

696


Do you know what are pure virtual functions?

646


What is c++ runtime?

663