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
What is class and object with example?
What is the use of oops?
What is a class oop?
What is static modifier?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the advantage of oop over procedural language?
What is stream in oop?
What is polymorphism used for?
What are the three main types of variables?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are the two different types of polymorphism?
Can static class have constructor?
Why do we use class?
what are the realtime excercises in C++?