In case of structure each variables have their own storage location whereas for unions all the variables share a common memory location. In structure all the variables can be handled at a time but for union only a member can be handled at a time.
by using structure in c.........
structure is a collection of variables of different datatypes.
c
data structure using c
225 Rs. after discount........
No such thing exist in C but you can do this using structure data type and creating arrary of it object there after!!
The operator required to call c function using object name is function object. Other operator names that deal with objects are structure dereference, structure reference, and indirection
There is no such thing. Structs and unions have fields, which can be accessed by their names.
C unions are also like structures. We have to allocate more memory when we use stucture.Because, memory needs to be allocated to all structure variables. Where as in Union, less memory is enough to allocate. Because, memory is allocated for only one member which occupies more memory among all members in the union. But, both have their own advantages and disadvantages.I came across one website which gives fair idea of union and structure difference and good sample programs and good explanationsC unionC structure
A union, is a collection of variables of different types, just like a structure. However, with unions, you can only store information in one field at any one time
There are lots of ways to join C x C one can use compression unions, C x C unions , couplings, soldering ,brazing mechanical joints, flare x flare
array,linklist,queue,stack,tree,graph etc...