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
What is bubble sort c++?
What are references in c++?
Write my own zero-argument manipulator that should work same as hex?
What are the two shift operators and what are their functions?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
How do we balance an AVL Tree in C++?
Why is it necessary to use a reference in the argument to the copy constructor?
What does new in c++ do?
What is the difference between object-oriented programming and procedural programming?
What is the use of setfill in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What are the differences between new and malloc?
What is the use of endl in c++ give an example?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Why we use #include conio h in c++?