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
How long to learn object oriented programming?
Is enum a class?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is a class in oop?
What is the purpose of polymorphism?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is class and object with example?
What are the three parts of a simple empty class?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
write a C++ program for booking using constructor and destructor.
Why it is called runtime polymorphism?
What are the features of oop?
What is destructor example?
Can private class be inherited?
Get me an image implementation program.