Wednesday, November 2, 2011

Summary of Structures in C programming language

(a)  A structure is usually used when we wish to store dissimilar data together.
(b)  Structure elements can be accessed through a structure variable using a dot (.) operator.
(c)  Structure elements can be accessed through a pointer to a structure using the arrow (->) operator. 
(d)  All elements of one structure variable can be assigned to another structure variable using the assignment (=) operator.
(e)  It is possible to pass a structure variable to a function either by value or by address.
(f)  It is possible to create an array of structures.

No comments:

Post a Comment