Hi,
I am Enam. I have a question
What is the difference between Structure & Array?
Any answer will be appreciated.
rgd
Enam
Dept: MCE
091409
An array is an ordered n-tuple of zero, one or more elements, each of
which has the same type.
A structure is an ordered n-tuple of one or more elements which may
have different types; although my compiler does not allow me to
declare a structure with no members, the Standard doesn't appear to me
to define a structure with zero members (comments on this from people
more familiar with the Standard are welcome).
A union is one value which may have one of an ordered n-tuple of types
(same cautions apply to the question of whether a union may be
declared with no types).
[A union is also a group of employees formed for the purpose of
collective bargaining with management; according to John Markoff of
the New York Times as
http://www.nytimes.com/2002/08/14/w...languages.html?scp=1&sq=markoff simula&st=cse,
Danish labor unions were key in the development of the first OO
language (Simula); in addition, union membership tends to reduce
interpersonal sniping and bullying amongst people who are a dime a
dozen professionally.]
A list, which cannot be implemented with a C construct directly, is an
UNORDERED n-tuple of zero, one or more elements. It is commonly
implemented in C as a linked list; incompetent programmers put the
list entry into the list; competent programmers put an address of the
list entry into the list.