Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why is oop useful?

1110


What does <> mean pseudocode?

1197


What is the problem with multiple inheritance?

1170


Can bst contain duplicates?

1198


What is difference between data abstraction and encapsulation?

1086


What is coupling in oop?

1035


What is encapsulation in oop?

1055


c++ program to swap the objects of two different classes

2422


What is use of overloading?

1150


What is the benefit of oop?

1059


What are the 5 oop principles?

1127


How do you explain polymorphism?

1080


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...

2114


What is the difference between procedural programming and oops?

1136


write a program that takes input in digits and display the result in words from 1 to 1000

2432