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

what is the difference between structure and union?

Answer Posted / karthikeyan

union is unified memory where structure is non unified memory.

all members of structure occupy consecutive chunks of
memory.but union members will share the most highest memory
of the union member.i.e data type.

we can access all the members of structure at a time.

but in union we can access a single union member at a time.

regards,

karthikeyan,
TRIOZTECH

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1275


Explain how do you generate random numbers in c?

1073


Why is main function so important?

1089


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1926


Explain threaded binary trees?

1143


What are pointers? Why are they used?

1167


What are different types of pointers?

1061


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1137


What is the process of writing the null pointer?

1017


Explain the meaning of keyword 'extern' in a function declaration.

1143


What is a pointer on a pointer in c programming language?

1132


Explain how can I write functions that take a variable number of arguments?

1065


Explain 'bit masking'?

1071


Define VARIABLE?

1154


How old is c programming language?

999