difference between structure and union.
Answer Posted / truong nguyen
Regarding the struct, each item in the struct is allocated
in a separated memory. And the size of a struct object is
total size of all its items.
But with the union, all its items are in the same memory.
And the size of an union object is size of its item which
has largest size.
| Is This Answer Correct ? | 24 Yes | 0 No |
Post New Answer View All Answers
write string class as your own class in java without using any built-in function
What is the example of polymorphism?
what is different between oops and c++
Can we have inheritance without polymorphism?
What do you mean by overloading?
What is multilevel inheritance in oop?
• What are the desirable attributes for memory managment?
What is encapsulation with example?
What is destructor example?
Whats is abstraction in oops?
What is purpose of inheritance?
What is polymorphism and why is it important?
What is oops in simple words?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is a superclass in oop?