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

which one is better structure or union?(other than the
space occupied )

Answer Posted / nishit jain

There is no question of which one is better. Both are there
for different functionality. Structures find more usage in
day-today programming, while unions are used less often.
There are examples where structure may not solve the purpose
but unions will work without much effort. Example :
packing-unpacking of data can be done using unions easily.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What 'lex' does?

1230


Can we increase size of array in c?

1012


What is the scope of local variable in c?

1203


What is 02d in c?

1111


What is the size of array float a(10)?

1193


Explain what is the benefit of using an enum rather than a #define constant?

1277


What does dm mean sexually?

1386


How can you find the day of the week given the date?

1241


What is the use of the function in c?

1073


What is d'n in c?

1176


Can you return null in c?

1229


What is strcmp in c?

1217


Describe the steps to insert data into a singly linked list.

1118


What is the use of getch ()?

1118


What are the different file extensions involved when programming in C?

1343