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
Why do we use iterators?
How do I write a c++ program?
How would you use the functions memcpy(), memset(), memmove()?
what are Operators and explain with an example?
What gives the current position of the put pointer?
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.
Why is c++ awesome?
What is c++ good for?
Can constructor be static in c++?
Are iterators pointers?
What is the disadvantage of using a macro?
How is modularity introduced in C++?
Explain all the C++ concepts using examples.
Do you know what are pure virtual functions?
What is c++ runtime?